facing it Only with edge 106,107,108 and the latest driver. and I'm using selenium 3.4.0
NullPointerException Stack Trace: java.lang.NullPointerException at org.openqa.selenium.remote.RemoteWebDriver.getWindowHandle(RemoteWebDriver.java:554) at org.openqa.selenium.edge.EdgeDriver$$EnhancerByCGLIB$$2174fa6c.CGLIB$getWindowHandle $63() at org.openqa.selenium.edge.EdgeDriver$$EnhancerByCGLIB$$2174fa6c$$FastClassByCGLIB $$d8f722da.invoke() at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at *************************************** at org.openqa.selenium.edge.EdgeDriver$$EnhancerByCGLIB$$2174fa6c.getWindowHandle()
the same is working for all other browsers, it started with the edge 106 release, and it is coming intermittently. If required furthur info please comment.
facing it only with edge drivers 106,107,108 and the latest. and I'm using selenium 3.4.0
1条答案
按热度按时间fykwrbwg1#
请尝试以下解决方案:
然后您可以使用alert