0

在 safari 浏览器上出现以下错误:

0.016s] [safaridriver.client] Connecting to SafariDriver browser extension...
[  0.027s] [safaridriver.client] This will fail if you have not installed the latest SafariDriver extension from
http://selenium-release.storage.googleapis.com/index.html
[  0.027s] [safaridriver.client] Extension logs may be viewed by clicking the Selenium [✓] button on the Safari toolbar

在控制台窗口上:

The browser selected is..Safari
Mar 01, 2018 3:22:11 AM org.openqa.selenium.safari.SafariDriverServer start
INFO: Server started on port 28320
Mar 01, 2018 3:22:11 AM org.openqa.selenium.safari.SafariDriverCommandExecutor start
INFO: Launching Safari
Mar 01, 2018 3:22:11 AM org.openqa.selenium.safari.SafariDriverCommandExecutor start
INFO: Waiting for SafariDriver to connect
Mar 01, 2018 3:22:21 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Shutting down
Mar 01, 2018 3:22:21 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Stopping Safari
Mar 01, 2018 3:22:21 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Stopping server
Mar 01, 2018 3:22:21 AM org.openqa.selenium.safari.SafariDriverServer stop
INFO: Stopping server
Mar 01, 2018 3:22:21 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Shutdown complete
Mar 01, 2018 3:22:21 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Shutting down
Mar 01, 2018 3:22:21 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Stopping server
Mar 01, 2018 3:22:21 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Shutdown complete
4

1 回答 1

0

很多时候,这是因为没有点击允许远程自动化的开发人员选项。在 safari 中,您可以通过单击“首选项”-> 高级来访问它。在底部显示“在菜单栏中显示开发人员菜单”。点击那个。然后在新出现的开发选项卡中单击列表底部的“允许远程自动化”。如果这不能运行它,请发布您的代码,我们可以进行更彻底的查看。

于 2018-02-28T22:23:13.993 回答