-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RemoteWebDriver.findElement() returns null #5809
Comments
For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect. See CONTRIBUTING.md |
Also retest in the latest version (that is 3.11 at the moment) |
Retested on 3.11 - have the same issue I cannot give you reproducible testcase which works well because issue occurred rarely (I have 2 fails in the same place in code for > 200 executions of data-driven test) Can we have some workaround for this? Like you did for |
Hi all. |
Selenium Version: v 3.8.1 (java bindings)
I use
RemoteWebDriver
(connected to chomedriver) which is wrapped byEventFiringWebDriver
.My stacktrace shows NPE with stacktrace
NPE was caused by line
in
EventFiringWebDriver.extractInterfaces()
. When I analyzed chain of calls I found thatobject
should be the WebElement which is returned byby
EventFiringWebDriver.findElement()
. Heredriver
is instance of RemoteWebDriver.I know that actually it is chromedriver issue. But there are very similar issues here (for findElements() ) which were fixed at client side, see #4555 and #4375.
Extra info:
In my case I tried to wait until element in another window will dissapear (by scenario window should be closed after click 'pay' button) So I expected that findElement will throw StaleElementException, ElementNotFoundException or NoSuchWindowException but I got NPE instead.
Subsequent call to webdriver returned:
org.openqa.selenium.NoSuchWindowException: no such window: target window already closed from unknown error: web view not found (Session info: chrome=63.0.3239.108) (Driver info: chromedriver=2.34.522940 (1a76f96f66e3ca7b8e57d503b4dd3bccfba87af1),platform=Windows NT 6.1.7601 SP1 x86_64) ....
The text was updated successfully, but these errors were encountered: