使用硒黄瓜

时间:2017-07-29 13:43:02

标签: selenium

尝试使用selenium和java打开Internet Explorer时遇到以下错误?

启动InternetExplorerDriver服务器(64位)         2.53.1.0         听47876号港口         仅允许本地连接         线程" main"中的例外情况org.openqa.selenium.NoSuchSessionException:启动Internet Explorer时出现意外错误。 IELaunchURL()返回HRESULT 80070002('系统找不到指定的文件。')用于网址' http://localhost:47876/' (警告:服务器未提供任何堆栈跟踪信息)         命令持续时间或超时:77毫秒         构建信息:版本:' 3.4.0',修订版:'未知',时间:'未知'         系统信息:主机:' LAPTOP-U09JTMGR',ip:' 192.168.0.105',os.name:' Windows 10',os.arch:&# 39; amd64',os.version:' 10.0',java.version:' 1.8.0_101'         驱动程序信息:driver.version:InternetExplorerDriver             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)             at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)             at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)             at java.lang.reflect.Constructor.newInstance(Unknown Source)             在org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:215)             在org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)             在org.openqa.selenium.remote.JsonWireProtocolResponse.lambda $ new $ 0(JsonWireProtocolResponse.java:53)             在org.openqa.selenium.remote.JsonWireProtocolResponse.lambda $ getResponseFunction $ 2(JsonWireProtocolResponse.java:91)             在org.openqa.selenium.remote.ProtocolHandshake.lambda $ createSession $ 22(ProtocolHandshake.java:365)             at java.util.stream.ReferencePipeline $ 3 $ 1.accept(Unknown Source)             at java.util.Spliterators $ ArraySpliterator.tryAdvance(Unknown Source)             at java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)             at java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)             at java.util.stream.AbstractPipeline.copyInto(Unknown Source)             at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)             at java.util.stream.FindOps $ FindOp.evaluateSequential(Unknown Source)             at java.util.stream.AbstractPipeline.evaluate(Unknown Source)             at java.util.stream.ReferencePipeline.findFirst(Unknown Source)             在org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)             在org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)             在org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)             在org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)             在org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)             在org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)             在org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)             在org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:220)             在org.openqa.selenium.ie.InternetExplorerDriver。(InternetExplorerDriver.java:212)             在org.openqa.selenium.ie.InternetExplorerDriver。(InternetExplorerDriver.java:154)             在test.Automation.App.main(App.java:17)

0 个答案:

没有答案