在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
答案 0 :(得分:0)
很多时候,因为没有点击允许远程自动化的开发者选项。在safari中,您可以通过点击'偏好设置来访问它。 - >高级。它在底部显示“在菜单栏中显示开发人员菜单”。'点击它。然后在新出现的开发选项卡中单击“允许远程自动化”。在列表的底部。如果没有运行它,请发布您的代码,我们可以更全面地了解一下。