safaridriver

Unable to run WebDriver tests in Safari

点点圈 提交于 2019-12-08 10:04:08
问题 I'm trying to run the Webdriver tests in Safari. Although the browsers opens i'm seeing the message [ 0.007s] [safaridriver.client] Requesting connection at ws://localhost:48726... [ 2.513s] [safaridriver.client] Unable to establish a connection with the SafariDriver I'm working with webdriver 2.33 and Safari version 5.1.7 Can someone point me what could be the issue? Thanks Anil 回答1: I was facing similar issue with 2.31.0. http://code.google.com/p/selenium/issues/detail?id=5318 Downgrading

How to enable “Allow Remote Automation” in Safari programmatically

随声附和 提交于 2019-12-07 11:36:24
问题 I am using macOS Sierra 10.12.4 with safari version 10.1 I need to enable the Allow Remote Automation option in Develop tab in Safari programmatically. I can run the below command which changes the com.apple.Safari.plist file in the ~/Library/Preferences and that enables the Develop menu perfectly. `defaults write com.apple.Safari IncludeDevelopMenu -bool true` However I did not find any option to enable the "Allow Remote Automation" Any idea which plist contains that info? 回答1: It is not

Unable to run tests against Safari 11 remotely (ssh, CI)

人盡茶涼 提交于 2019-12-02 02:29:15
问题 I'm having troubles running Ruby/RSpec tests against Safari 11 when I'm trying to run tests via ssh manually or via Jenkins (where machine where Safari exists is remote slave). When executing tests, I'm getting following error: Selenium::WebDriver::Error::WebDriverError: unable to connect to safaridriver 127.0.0.1:7050 What is weird is that I'm able to run tests when I'm logged to the Mac machine directly. This leads me to the conclusion that there could be some permission which, by default,

Unable to run tests against Safari 11 remotely (ssh, CI)

你。 提交于 2019-12-01 22:52:27
I'm having troubles running Ruby/RSpec tests against Safari 11 when I'm trying to run tests via ssh manually or via Jenkins (where machine where Safari exists is remote slave). When executing tests, I'm getting following error: Selenium::WebDriver::Error::WebDriverError: unable to connect to safaridriver 127.0.0.1:7050 What is weird is that I'm able to run tests when I'm logged to the Mac machine directly. This leads me to the conclusion that there could be some permission which, by default, disables execution from ssh session but not sure why? Also, to my knowledge, Safari Driver is part of

Running safaridriver thorugh ssh always asks password

岁酱吖の 提交于 2019-12-01 01:47:29
I would like to run safari selenium test in virtual machine on virtualbox. I have running macOS Sierra 10.12 inside virtual box. Tutorials say that you need to run /usr/bin/safaridriver once, to authorise it. I did that. And tests run perfectly, when I start them in terminal through GUI of virtual box. But when I ssh to that virtual box machine, I always got asked for password. It is a problem when running webdriver-manager / selenium standalone, when I cannot provide password. Vbox: Safari 10.0, macOS Sierra 10.12 user8672807 I have similar issue as stated above, I tried to run safaridriver -

Failed to connect to SafariDriver (Safari 10)

谁说我不能喝 提交于 2019-11-30 15:25:24
问题 I'm getting the following error when running my protractor test on mac for safari Failed to connect to SafariDriver after 10082 ms Build info: version: '2.53.1', revision: 'a36b8b1', os.arch: 'x86_64', os.version: '10.12.2', java.version: '1.8.0_101' Driver info: driver.version: SafariDriver capability: name: 'Safari', browserName: 'safari', logName: 'Safari', shardTestFiles: true, maxInstances: 2 Do we need a specific safari driver for this? If yes, where can I get it from and where should

Failed to connect to SafariDriver (Safari 10)

拟墨画扇 提交于 2019-11-30 14:09:43
I'm getting the following error when running my protractor test on mac for safari Failed to connect to SafariDriver after 10082 ms Build info: version: '2.53.1', revision: 'a36b8b1', os.arch: 'x86_64', os.version: '10.12.2', java.version: '1.8.0_101' Driver info: driver.version: SafariDriver capability: name: 'Safari', browserName: 'safari', logName: 'Safari', shardTestFiles: true, maxInstances: 2 Do we need a specific safari driver for this? If yes, where can I get it from and where should it be declared in the .conf file. Thank you! Yes, you need to install a specific safari driver in order

WebDriverException: Message: The command 'GET /session/7…/displayed' was not found while Explicit Wait with safaridriver and Selenium 3.13.0

房东的猫 提交于 2019-11-26 17:14:04
问题 I am using explicit wait like below to check if element is clickable. WebDriverWait(driver, 30).until( expected_conditions.element_to_be_clickable((By.CSS_SELECTOR, "#search"))) But I get error <class 'selenium.common.exceptions.WebDriverException'> Message: The command 'GET /session/.../displayed' was not found. If I use time.sleep() it works fine instead of explicir wait it works fine. I have initialized safari driver as from selenium.webdriver import Safari driver = Safari() Here is