我在SafariDriver上测试Selenium WebDriver。
我在一开始就得到了这样的信息:
SafariDriver Launcher
[ 0.024s] [safaridriver.client] Connecting to SafariDriver browser extension...
[ 0.033s] [safaridriver.client] This will fail if you have not installed the latest SafariDriver extension from
http://selenium-release.storage.googleapis.com/index.html
[ 0.033s] [safaridriver.client] Extension logs may be viewed by clicking the Selenium [✓] button on the Safari toolbar
[ 0.082s] [safaridriver.client] Connected to extension
[ 0.083s] [safaridriver.client] Requesting extension connect to client at ws://localhost:36850在我得到这条消息错误后:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /tunnel/cart/add/uenc/aHR0cDovL2dlbmVyb3NpdHktZGVtby5iaXNub2RlLmZyOjgyL2NhbXBhZ25lLWRlLWRvbi10cmVlLWxhYi5odG1s/product/23/form_key/JEQ8UWdbycz65baM/.
Reason: Error reading from remote server在启动Safari时,我使用:
Webdriver driver = new SafariDriver()如何解决此问题?
发布于 2016-06-14 08:02:44
您需要从提供的链接下载safaridriver.safaridriverxtz,然后双击它(单击trust)并启用它作为您的Safari的扩展。
重新启动它,它应该可以工作(尽管我在这里遇到了其他问题...)。
发布于 2019-10-05 06:50:40
配置并启用Safari WebDriver:
https://stackoverflow.com/questions/29795036
复制相似问题