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

164 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,325
  • 5
  • 29
  • 64
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
  • 1,893
  • 4
  • 20
  • 46
6
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
  • 373
  • 3
  • 16
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
  • 323
  • 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
  • 861
  • 4
  • 11
  • 25
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,262
  • 2
  • 16
  • 34
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
  • 341
  • 1
  • 5
  • 19
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…
3
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…
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
  • 2
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
  • 2,886
  • 2
  • 9
  • 16
3
votes
3 answers

How to upload file in webdriver on Safari (MAC)

I am trying to upload file to Safari(8.0.8) using webdriver. Can anyone confirm it is possible or not? I was searching this problem and I cant find clear information. My test environment: I run test at my local PC with Win7 and browser start at…
3
votes
0 answers

Can't run Protractor with Safari

I'm trying to solve it for days, please help me! I'm running my protractor tests using chrome, firefox and internet explorer, but when I try to run the same test in Safari, I get the following error: ScriptTimeoutError: Timed out awaiting…
Marcelo
  • 197
  • 1
  • 4
  • 16
1
2 3
10 11