无法启动safaridriver,导致错误' safaridriver无法启动,因为它未正确配置或您需要进行身份验证'

时间:2018-02-21 17:46:42

标签: selenium safaridriver

操作系统: macOS Sierra

Selenium版本: 3.7.1

浏览器:Safari v11.0.3

问题: 即使“允许远程自动化”,也无法启动safaridriver。检查并运行safaridriver --enable。

错误

' safaridriver无法启动,因为它未配置 正确或您需要进行身份验证。重新运行safaridriver(1)和 通过' - 启用'用于配置和/或验证的标志。 有关更多信息,请参阅safaridriver(1)手册页。'

错误记录

$ selenium-standalone start -- -role node -nodeConfig nodes/safari.json
17:34:07.814 INFO - Selenium build info: version: '3.7.1', revision: '8a0099a'
17:34:07.815 INFO - Launching a Selenium Grid node
2018-02-21 17:34:08.104:INFO::main: Logging initialized @574ms to org.seleniumhq.jetty9.util.log.StdErrLog
17:34:08.137 INFO - Driver class not found: com.opera.core.systems.OperaDriver
17:34:08.150 INFO - Driver provider class org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
 registration capabilities Capabilities {browserName: internet explorer, ensureCleanSession: true, platform: WINDOWS, version: } does not match the current platform MAC
17:34:08.150 INFO - Driver provider class org.openqa.selenium.edge.EdgeDriver registration is skipped:
 registration capabilities Capabilities {browserName: MicrosoftEdge, platform: WINDOWS, version: } does not match the current platform MAC
17:34:08.180 INFO - Using the passthrough mode handler
2018-02-21 17:34:08.198:INFO:osjs.Server:main: jetty-9.4.5.v20170502
2018-02-21 17:34:08.216:WARN:osjs.SecurityHandler:main: ServletContext@o.s.j.s.ServletContextHandler@22fcf7ab{/,null,STARTING} has uncovered http methods for path: /
2018-02-21 17:34:08.219:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@22fcf7ab{/,null,AVAILABLE}
2018-02-21 17:34:08.236:INFO:osjs.AbstractConnector:main: Started ServerConnector@77f80c04{HTTP/1.1,[http/1.1]}{0.0.0.0:5555}
2018-02-21 17:34:08.237:INFO:osjs.Server:main: Started @707ms
17:34:08.237 INFO - Selenium Grid node is up and ready to register to the hub
17:34:08.241 INFO - Starting auto registration thread. Will try to register every 5000 ms.
17:34:08.242 INFO - Registering the node to the hub: http://qa-docker02.avirat.net:4449/grid/register
17:34:08.256 INFO - The node is registered to the hub and ready to use
Selenium started
2018-02-21 17:34:37.690:INFO:osjshC.ROOT:qtp2124643775-15: org.openqa.selenium.remote.server.WebDriverServlet-2d3379b4: Initialising WebDriverServlet
17:34:37.705 INFO - Found handler: org.openqa.selenium.remote.server.commandhandler.BeginSession@5064ed96
17:34:37.708 INFO - /session: Executing POST on /session (handler: BeginSession)
17:34:37.750 INFO - Capabilities are: Capabilities {browserName: safari}
17:34:37.752 INFO - Capabilities {browserName: safari} matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.safari.SafariDriverService)
ERROR: safaridriver could not launch because it is not configured
correctly or you need to authenticate. Re-run safaridriver(1) and
pass the '--enable' flag to configure and/or authenticate.
For more information, consult the safaridriver(1) man page.   

0 个答案:

没有答案