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
I use RemoteWebDriver (connected to chomedriver) which is wrapped by EventFiringWebDriver.
My stacktrace shows NPE with stacktrace
Caused by: java.lang.NullPointerException:
at org.openqa.selenium.support.events.EventFiringWebDriver.extractInterfaces(EventFiringWebDriver.java:124)
at org.openqa.selenium.support.events.EventFiringWebDriver.access$500(EventFiringWebDriver.java:69)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.<init>(EventFiringWebDriver.java:368)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.<init>(EventFiringWebDriver.java:360)
at org.openqa.selenium.support.events.EventFiringWebDriver.createWebElement(EventFiringWebDriver.java:311)
at org.openqa.selenium.support.events.EventFiringWebDriver.findElement(EventFiringWebDriver.java:194)
.....
in EventFiringWebDriver.extractInterfaces(). When I analyzed chain of calls I found that object should be the WebElement which is returned by
WebElement temp = driver.findElement(by);
by EventFiringWebDriver.findElement(). Here driver 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:
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 findElements in 4a3ec2d when fixing #4555. For example, throw NotFoundException or some other exception when remote driver returns null for findElement ?
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: