MAC Safari上的Intern.js

时间:2019-11-07 13:11:36

标签: selenium safari intern safaridriver

在野生动物园浏览器中启动实习脚本时,我遇到了问题。

实习生版本3.4.3 硒3.5.3 Mac版本10.14 Java版本1.8

以下是我的配置文件的内容

定义({

defaultTimeout: 900000,

reporters: [{id: 'LcovHtml', directory: 'InternHTMLResult'}, {id: 'Console'}],
 environment: [
    {   


         browserName: 'safari',

        platform: 'MAC',        

  }
],  
maxConcurrency: 5,

 tunnel: 'NullTunnel',
tunnelOptions : {
    port: Number('5769')
},

functionalSuites: ['tests/functional/GoogleSample2.js'],
excludeInstrumentation: true

});

**并且我遇到错误**

''' SUITE ERROR
SessionNotCreatedException: [POST http://localhost:5769/wd/hub/session / {"desiredCapabilities":{"name":"tests/internMacSafari.js","idle-timeout":60}}] Unable to create new service: ChromeDriverService
Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z'
System info: host: 'punpmmac3dx02', ip: 'fe80:0:0:0:1837:d885:265d:120d%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.2', java.version: '1.8.0_131'
Driver info: driver.version: unknown
  at Server.createSession  <node_modules/leadfoot/Server.js:362:15>
  at <node_modules/intern/lib/executors/Runner.js:198:23>'''

当我使用硒3.4.0 jar时,它给出

UnknownError:[POST http://localhost:5769/wd/hub/session / {“ desiredCapabilities”:{“ name”:“ tests / internMacSafari.js”,“ idle-timeout”:60}}]]最匹配的驱动程序提供商org.openqa。 selenium.safari.SafariDriver无法为功能[{name = tests / internMacSafari.js,idle-timeout = 60}]创建新的驱动程序实例\ 构建信息:版本:“ 3.4.0”,修订版:“未知”,时间:“未知” \ 系统信息:主机:'punpmmac3dx02',ip:'fe80:0:0:0:1837:d885:265d:120d%en0',操作系统名称:'Mac OS X',os.arch:'x86_64',os .version:“ 10.14.2”,java.version:“ 1.8.0_131” \ 驱动程序信息:driver.version:未知\   在Server.createSession

0 个答案:

没有答案