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
1
vote
2 answers

Unable to establish a connection with the SafariDriver during launching Safari with Selenium WebDriver using Java

Tried using Selenium with the SafariWebDriver. Using the jars selenium-server-standalone-2.33.0.jar - to run the Jetty Server java -jar ./lib/selenium-server-standalone-2.33.0.jar selenium-java-2.33.0.jar (I didn't use Maven to setup project -…
JGFMK
  • 8,425
  • 4
  • 58
  • 92
1
vote
1 answer

Watir webdriver: uploading files isn't working in SAFARI browser?

I am trying to attach file to upload with form in safari browser. Element is searchable but file is not attached. using following command…
0
votes
1 answer

SessionNotCreatedError: Could not create a session: Some devices were found, but could not be used:

I am trying to automate Web app on iOS Safari for e2e test. Even though following code worked for emulator in iOS 17 beta, it seems not working on Real Device(iPhone 12, iOS 16.6). code for test const fs = require("fs"); const { Builder, By, Key,…
Issei Morita
  • 23
  • 1
  • 5
0
votes
0 answers

Safari with Selenoid not working with GitLab

I am using Selenoid with GitLab and it's working like a charm for Chrome, Edge and Firefox browsers. However when it comes to Safari, the scripts are not able to connect to the Safari browser, getting errors like session not found and other similar…
SRM21
  • 453
  • 5
  • 14
0
votes
1 answer

Getting strange exception when using Selenium to operate a safari instance with SafariDriver() web driver

I am new to using the SafariDriver() web driver with Selenium. and so in order to gain some experience I thought I would use the example code from: [https://www.browserstack.com/guide/run-selenium-tests-on-safari-using-safaridriver%5C] However this…
0
votes
2 answers

No module named 'selenium.webdriver.safari.options'

Requirements OS macOS Monterey 12.3.1 Selenium version 4.1.1 Python 3.10 Safari 15.4 (17613.1.17.1.13) from selenium.webdriver.safari.options import Options as SafariOptions self.options = SafariOptions() ModuleNotFoundError: No…
VVV
  • 55
  • 6
0
votes
1 answer

How to handle browser notifications for safari browser while executing tests on Saucelabs via Selenium?

I am trying to execute some scripts from our in-house existing framework on the safari browser on Saucelabs. As soon as the application is logged in I get the browser notification to Allow or Don't Allow but I am not able to interact with it. I…
Pulkit Shah
  • 81
  • 1
  • 10
0
votes
2 answers

NightwatchJS: Safari can't find nested iFrame

I'm having difficulty testing a piece of code using NightwatchJS with Selenium and SafariDriver. I have an open issue for this on nightwatch repo, although am not sure if it is an issue with nightwatch or something deeper. The HTML content to be…
0
votes
1 answer

How to configure Safari webdriver to use .pac file

I am working on automation repo with Ruby and Watir framework. I found a ways to set the pac file for chrome and firefox webfrivers. Examples: chrome: args << "--proxy-pac-url=#{pac_file_path}" firefox: profile['network.proxy.autoconfig_url'] =…
Alex
  • 27
  • 6
0
votes
0 answers

Safari | Big Sur | JAVA :- Capability 'acceptInsecureCerts' could not be honored

Code: safariOptions.setCapability(CapabilityType.ACCEPT_SSL_CERTS,true); safariOptions.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true); driver = new SafariDriver(safariOptions); Error: org.openqa.selenium.SessionNotCreatedException:…
0
votes
1 answer

How to launch maximised window of Safari Browser in Nightwatch

Nightwatch Configuration file: "globals_path":"./nightwatch/global.js", "detailed_output":true, "disable_colors":false, "output_folder":"./tests_output", "webdriver":{ "start_process":true }, "selenium":{ "start_process":true, "port":4444, …
0
votes
1 answer

Selenium not connecting to Safari Web Driver

First let me say, I have seen this question posted many times before and I have read the majority of the solutions but I am still having issues. I am using a MacBook (10.15.6) and Safari (13.1.2). I am using PyCharm 2020.1.4 and have a program…
0
votes
1 answer

Unable to launch safariDriver through Jenkins

I want to run my selenium/java scripts on safari browser. Local runs work fine (Im able to see safari launch & scripts work fine). But I am facing an issue when I try to run it through Jenkins. It errors out at this statement , does not launch…
0
votes
1 answer

How do I disable the Safari cross origin request for Ipad/Iphone on browser stack?

I am running my UI automation tests on browser stack and they all are failing just for Ipad/Iphone safari browser running on ios 11. Our application is making cross domain requests and this could be one of the reasons why ios restricts it. Hence is…
0
votes
2 answers

How to upload a file through the input tag using Selenium Safari and Python

I have a selenium script that is working for chrome and firefox. I need to add support for safari (13). This is selenium grid working through LambdaTest. I'm getting stuck with safari file uploads. Here is the code that works for other…
Brian
  • 385
  • 1
  • 5
  • 23