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
2
votes
2 answers

Unable to start Selenium Safari WebDriver via python3

I want to use Safari as the browser from python, and the code is fairly easy: from selenium import webdriver driver = webdriver.Safari() url = 'https://www.gmail.com/' driver.get(url) I am using the latest version of Safari, 11.0.3, In…
Lumi Wang
  • 73
  • 3
  • 10
2
votes
1 answer

Ignore popup when close safari driver

I use safari driver in my tests automation. When I try to use driver.close() to close safari, there is always a popup "Are you sure you want to quit this site"? How can I ignore the popup or disable the popup? I want the browser to close directly…
yue
  • 119
  • 1
  • 11
2
votes
2 answers

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

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…
Bakir Jusufbegovic
  • 2,806
  • 4
  • 32
  • 48
2
votes
2 answers

How to use safari technology preview in webdriver io tests (using wdio test runner)?

I tried running my tests on safari technology preview release 43 (Safari 11.1, WebKit 12605.1.12) using the below desired capabilities in wdio.conf.js. capabilities: [{ browserName: 'safari', 'safari.options': { technologyPreview:…
2
votes
2 answers

Safari Browser: Switch to frame is not working

I am trying to run few test on Mobile Emulators (Safari Browser) and stuck at a problem. Where after switching to an Iframe I am not able to do any action. There is already a closed issue for that, however I didn't find any solution after going…
Gaurang Shah
  • 11,764
  • 9
  • 74
  • 137
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…
shawn mazidy
  • 23
  • 2
  • 6
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
  • 6
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
  • 51
  • 6
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
  • 785
  • 1
  • 14
  • 36
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
  • 347
  • 1
  • 7
  • 18
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,806
  • 4
  • 32
  • 48
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
  • 2
  • 3
  • 16
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
  • 631
  • 1
  • 5
  • 5
1 2
3
11 12