51Testing软件测试论坛

标题: 选中问题:求助——selenium无法调用IE浏览器 [打印本页]

作者: navybulezn    时间: 2018-6-25 15:55
标题: 选中问题:求助——selenium无法调用IE浏览器
使用selenium 调用IE浏览器时遇到下面的错误:
[RemoteTestNG] detected TestNG version 6.14.2
Started InternetExplorerDriver server (32-bit)
3.11.0.0
Listening on port 14810
Only local connections are allowed
FAILED: test
org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 800702E4 ('请求的操作需要提升。') for URL 'http://localhost:14810/'
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z'
System info: host: 'WIN-01806151221', ip: '192.168.3.100', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_172'
Driver info: driver.version: InternetExplorerDriver
remote stacktrace:
        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)
        at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
        at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
        at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123)
        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)

已排除了IEDriver 版本不匹配的原因;也已经禁用了IE的保护模式。可是依旧无法成功调用浏览器,请哪位大神指点一二。十分感谢!
作者: Real_小T    时间: 2018-6-26 21:15
相同代码调其它浏览器行不行
作者: qqq911    时间: 2018-6-27 11:05
用管理员打开
作者: 梦想家    时间: 2018-6-27 11:52
相同代码调其它浏览器行不行
作者: 海海豚    时间: 2018-6-27 13:06

用管理员打开
作者: jingzizx    时间: 2018-6-27 13:10
试试其他版本如何




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2