Questions tagged [safaridriver]

`SafariDriver` is implemented as a Safari browser extension. The driver inverts the traditional client/server relationship and communicates with the `WebDriver` client using `WebSockets`

Safari 10 onwards Safari 10+ comes with bundled Safari WebDriver

Pre Safari 10 SafariDriver is implemented as a Safari browser extension. The driver inverts the traditional client/server relationship and communicates with the WebDriver client using WebSockets

169 questions
14
votes
1 answer

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

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
user2661518
  • 2,677
  • 9
  • 42
  • 79
13
votes
4 answers

Start safari with extension using safariDriver in selenium

I want to start my browser with my extensions. In chrome I can use the chromeOptions as in code sample below. Firefox works in a similar way. ChromeOptions options = new ChromeOptions(); options.addExtensions(new…
mosaad
  • 2,276
  • 5
  • 27
  • 49
7
votes
2 answers

Failed to connect to SafariDriver (Safari 10)

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:…
CodeJockey
  • 423
  • 5
  • 18
6
votes
4 answers

Disable automation warning in Safari when using selenium

I Would like to perform tests in safari, using selenium. Unfortunately, when I try to debug issues using the safari, a notification appears which requires me either disable automation in safari or to quit (attached image). why I cannot do it as in…
Danny Kaminski
  • 191
  • 2
  • 15
5
votes
0 answers

An unknown server-side error occurred while processing the command in Safari.

Having this error while trying to set the value of the textbox to blank in Safari 10.1. Using WebdriverIO: 4.6.2 Scenario: Got a text already in the textbox. Have to make that textbox blank to reset the search. Code…
T Gurung
  • 333
  • 1
  • 7
5
votes
0 answers

Maximizing Safari window with selenium sometimes fails

I'm using Selenium RemoteWebDriver to run tests written in Java on a remote MacBook. I maximize the browser window using: driver.manage().window().maximize(); This works 100% of the time for Chrome, Firefox and IE11. But with Safari this seems to…
EJS
  • 1,011
  • 5
  • 14
  • 28
4
votes
2 answers

How do I run nightwatch tests against safari?

I can't find any valid nightwatch configuration for safari that does not include the entire Selenium jar. The nightwatch documentation says: Using Selenium Standalone Server used to be the de-factor standard for managing the various browser…
Alex Egli
  • 1,884
  • 2
  • 24
  • 43
4
votes
2 answers

How to enable "Allow Remote Automation" in Safari programmatically

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…
asinha
  • 337
  • 1
  • 6
  • 24
4
votes
2 answers

Dropdown not getting selected using Selenium Webdriver on Safari browser

On Safari browser I need to select an Option from the dropdown but the funny thing is that it works for all the browsers except for Safari on Mac OS. I am using Safari 10.0.3 with selenium webdriver version 3.3.0 I have written the code in C#. Refer…
FullStackdev
  • 99
  • 1
  • 10
3
votes
1 answer

iOS 13 safaridriver can not create safari session

tl;dr: safaridriver very often not able to connect to mobileSafari on real iOS 13 device. mobileSafari seems to be in kind of suspended mode after webdriver connection has been closed. Only solution, to make further connects, is manually killing…
mperkh
  • 31
  • 3
3
votes
1 answer

How to set Safari download location - Selenium WebDriver

Trying to set safari (driver) download directory to specific location. Now it will just download files to default "Downloads" folder. String currentDirectory = System.getProperty("user.dir"); String downloadFilePath =…
3
votes
1 answer

Upload File using Robot Framework on Safari

Upload File keyword is not working on Safari. I have this test running on Chrome, but when comes to Safari, I got this message: Choose File id=files file_path= InvalidArgumentException: Message: One or more files could not be selected.
3
votes
1 answer

How to use execute selenium automation scripts(java) using safari technology preview?

I wanted some help on running my automation scripts on Safari. Im running my selenium webdriver scripts on Mac OS(High Sierra) and Safari 11.1.2 I have WebDriver Extension has been added to safari browser and I have enabled the 'Allow Remote…
3
votes
1 answer

Selenium, Safari: Only take screenshot of the visible elements

Using Selenium to test website, I want to take screenshot of the visible part of the page (the viewport). In Chrome, firefox and opera by default it's like this. in IE I added a capability: "ie.enableFullPageScreenshot": false in Safari, I can't…
Elheni Mokhles
  • 3,801
  • 2
  • 12
  • 17
3
votes
0 answers

Selenium Safari webdriver timeouts when trying to find an element

I made a script to automate front-end testing with selenium and everything worked great with the Chrome WebDriver. However now I try to test my suites cases on other browsers and particularly in the safari webdriver and it timeouts while trying to…
Djagu
  • 163
  • 1
  • 12
1
2 3
11 12