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
2
votes
1 answer

Selenium code is not working for locating an element in Safari, working in Firefox and Chrome

Can someone help who has worked on Selenium WebDriver? I have been trying to automate a test scenario using Selenium WebDriver on a Mac machine. When I define Safari as my browser, I am getting and error "An element could not be located on the page…
2
votes
3 answers

C# Selenium How to use Safari Technology Preview

How we instruct Selenium to use Safari Technology Preview in C#? In Java, we can set that using the method setUseTechnologyPreview, but unable to find similar method in C# class SafariOptions. We have tried by using…
Jibu
  • 41
  • 5
2
votes
0 answers

Resizing safaridriver browser window through selenium grid leads to NoSuchWindowException

I've a PC and Mac. I'm using the PC to host a selenium grid hub and the Mac a safari node. I'm running a visual studio 2017 unit test. The test passes as long as I don't try to resize the browser window. If I do, there is a no such window exception.…
G C
  • 21
  • 3
2
votes
1 answer

selenium 3.0 webdriver for safari 10 on yosemite

I have a mac yosemite with Safari 10 that I'm trying to upgrade to running selenium webdriver 3.0. and I cannot get the remote webdriver to start it. It is throwing the following errors: 1. Exception: SafariDriver requires Safari 10 running on OSX…
Karidrgn
  • 155
  • 1
  • 10
2
votes
1 answer

Selenium New Wait Until Condition Doesnt Work Forced to use Thread.Sleep

So I noticed that selenium in many cases is so fast it doesnt catch the transitions of a menu sliding on a web application. The example below will not run unless I put a thread sleep (which I absolutely hate in my code)... Is this the only way? Here…
Potion
  • 440
  • 5
  • 18
2
votes
1 answer

Selenium 3.0.1 with safaridriver failing on waitForElementVisible()

Safari 10.0.1 macOS Sierra When running Codeception command: $I->waitForElementVisible(['css' => 'input[type=text][id=UserUsername]'], 30); in an acceptance test in Safari with Selenium 3.0.1 I receive an error. The screenshot taken at failure…
CosetteN
  • 307
  • 1
  • 4
  • 18
2
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
  • 153
  • 12
2
votes
2 answers

How to install safari extension for Selenium 2.53 with Safari browser

I've been following wiki to setup safari extension for Selenium 2.48.0: This works mostly, but occasionally getting some weird errors in my tests scripts (that are written in Ruby/Capybara) like: Selenium::WebDriver::Error::NoSuchElementError: …
Bakir Jusufbegovic
  • 2,236
  • 3
  • 25
  • 35
2
votes
1 answer

clearing chromedriver cache - java

Is there a way to clear chromedriver cache using a selenium API or a javascript? I have already tried the following: ChromeOptions options = new ChromeOptions(); options.addArguments("user-data-dir=" + pathOfChromeProfile); …
2
votes
4 answers

How to launch Safari with Selenium WebDriver using Java

I have successfully installed safari developer certificate for safari driver. I have been built and added to safari extensions builder. The presteps are done. However when I run my selenium scripts, the safari server starts on a port and then I get…
user3866016
  • 97
  • 1
  • 3
  • 15
2
votes
1 answer

How to set CleanSession capability for SafariDriver in C#?

in Java we can initiate the Safari Webdriver without previously stored coookies through the following code: SafariOptions options = new SafariOptions(); options.setUseCleanSession(true); WebDriver webdriver = new SafariDriver(options); However it…
radek.pribyl
  • 521
  • 1
  • 4
  • 5
2
votes
1 answer

Clear cookies before starting new test using SafariDriver

Does anyone know how to clear the cache on a new start of a test while running SafariDriver? I've tried to use java robot to keypress command + option + e, but that does not seem to work. It does not focus on the browser. Robot r = new Robot(); try…
adom
  • 129
  • 1
  • 3
  • 9
1
vote
0 answers

.perform() not working with Cataline safari 13.1 Browserstack

I want to move the cursor on xpath element given below so that I can validate the colour changes but I am getting below error : org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: WebElement ele =…
1
vote
0 answers

Does the safaridriver support proxy configuration?

I've been trying to use Robot Framework to write some cross browser tests. One of the requirements is that i need to use a proxy to access the website I am testing. Right now, I am trying to launch the safari browser and get it to go through the…
GCT
  • 13
  • 3
1
vote
0 answers

Why does my Selenium script only work some of the time?

I am having one of the weirdest problems ever. My script below works about 50% of the time, the other time it doesn't make it passed the first button click. browser = webdriver.Safari() browser.get('https://www.onvista.de/') WebDriverWait(browser,…
jda5
  • 1,115
  • 2
  • 9
1 2
3
10 11