Unable to find an element by Id, Name or Xpath using the Webdriver of IE for my webpage

1,149 views
Skip to first unread message

Vikas Krishnamraju

unread,
Jan 11, 2012, 10:52:00 AM1/11/12
to Selenium Users
Hi All,

Could you please help me out with the following situation

used tools and technologies

IE 8
selenium webdriver 2.0
Language used C# in VS2010
copied all the dlls from http://code.google.com/p/selenium/downloads/list.
File : "selenium-dotnet-2.16.0.zip "
url = http://www.checkpointworld.com/maf/app/authentication/formLogin

Code used:

IWebDriver multipleBrowsersDriver = new InternetExplorerDriver();
multipleBrowsersDriver.Navigate().GoToUrl("http://
www.checkpointworld.com/maf/app/authentication/formLogin");
multipleBrowsersDriver.FindElement(By.Id("uid")).SendKeys("selenium");

The problem I am facing here when i execute the test case using Nunit
is
"TestSeleniumWebDriver.webDriverTest.TestCase1:
OpenQA.Selenium.NoSuchElementException : Unable to find element with
id == uid"

But when i use the FireFoxDriver or ChromeDriver drive my test
executes successfully and able to fill in the text box.

I have tried using different ways by name, xpath but unable to work it
out in IE.
I have checked with other sites such as gmail, yahoomail, hotmail
everything was working as expected. I do not why for my site it is not
working as expected.

thanks in advance for any support you provide.

santosh h s

unread,
Jan 18, 2012, 10:49:53 AM1/18/12
to seleniu...@googlegroups.com
After page load you need to wait untill the element is visible

i have tried same with the java for your website it worked for me


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.




--

/Santosh

Phil_Test

unread,
Jun 22, 2012, 9:41:31 AM6/22/12
to seleniu...@googlegroups.com
Hi,

You have find a solution about your problem ?

I have the same problem

Phil

Alex

unread,
Nov 22, 2012, 4:23:42 AM11/22/12
to seleniu...@googlegroups.com
2 things can cause that.

1) the element has different id's/xpath/css in ie8 (common thing for different web browsers to behave differently and have a different looking DOM)
2) like the person above said make sure you wait for the element to be displayed and/or enabled otherwise the webdriver won't find it.

On Wednesday, November 21, 2012 1:44:19 PM UTC+2, den2005 wrote:
Hi,

  I tried using ChromeDriver and FirefoxDriver and no problem encountered, when I used InternetExplorerDriver I am getting "unable to find element with id "gbqfq" in www.google.com page, then I found this page (_http://code.google.com/p/selenium/issues/detail?id=3032) which reports same problem I have except I am using Windows 7 64-bit IE 9 and C#. Does anyone has a solution or a workaround ?

Thanks in advanced.

Dennis

Paras Jain

unread,
Nov 21, 2013, 8:18:12 AM11/21/13
to seleniu...@googlegroups.com
Hi,

Same error occurred with IE 10.

I am using Win 7.

Thanks in advanced..
Reply all
Reply to author
Forward
0 new messages