You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
What steps will reproduce the problem?
1. Run the attached java code
2. Change the code line that has the code "driver.get("www.gmail.com");" to "driver.get("www.google.com");"
What is the expected output? What do you see instead?
In the first run, what was supposed to appear is in the attached .txt file(example
www.gmail.com). Instead, I get a NullPointerException, because the method driver.findElements(By.xpath("//INPUT"));
returns null instead of a list.
In the second run, it was supposed to have the same behaviour as the first (a nullpointerexception),
but instead I get the correct output (example www.google.com).
Selenium version: selenium-java-2.13.0
OS: Windows XP
Browser: Internet Explorer
Brower version: 8
Driver: InternetExplorerDriver
I realised that for gmail.com, the findElement method is not working under these conditions,
despite the By method I use.For www.google.com, I can find any element I wish.
Additional Info:
I ran both tests on Internet Explorer 9 on Windows 7 and both passed. This problem
does not happen with FirefoxDriver, in any version.
Reported by bernardo.mendonca@knowledgeworks.pt on 2011-11-30 20:46:56
I have tried the Code but Its not working. Here is the output
Started InternetExplorerDriver server (64-bit)
2.25.3.0
Listening on port 43929
Oct 31, 2012 1:43:57 AM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request: Software
caused connection abort: recv failed
Oct 31, 2012 1:43:57 AM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request
Exception in thread "main" java.lang.NullPointerException
at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:290)
at org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(RemoteWebDriver.java:357)
at org.openqa.selenium.By$ByXPath.findElements(By.java:338)
at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:256)
at com.slr.sample.TestInternetExploderDriverWithXPath.main(TestInternetExploderDriverWithXPath.java:36)
Originally reported on Google Code with ID 2973
Reported by
bernardo.mendonca@knowledgeworks.pt
on 2011-11-30 20:46:56- _Attachment: [TestInternetExploderDriverWithXPath.java](https://storage.googleapis.com/google-code-attachments/selenium/issue-2973/comment-0/TestInternetExploderDriverWithXPath.java)_ - _Attachment: [correctOutputWithIE9OnWindows7.txt](https://storage.googleapis.com/google-code-attachments/selenium/issue-2973/comment-0/correctOutputWithIE9OnWindows7.txt)_
The text was updated successfully, but these errors were encountered: