navybulezn 发表于 2018-6-25 15:55:49

选中问题:求助——selenium无法调用IE浏览器

使用selenium 调用IE浏览器时遇到下面的错误:
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:58

相同代码调其它浏览器行不行

qqq911 发表于 2018-6-27 11:05:38

用管理员打开

梦想家 发表于 2018-6-27 11:52:51

相同代码调其它浏览器行不行

海海豚 发表于 2018-6-27 13:06:23


用管理员打开

jingzizx 发表于 2018-6-27 13:10:09

试试其他版本如何
页: [1]
查看完整版本: 选中问题:求助——selenium无法调用IE浏览器