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`
171
questions
0
votes
0
answers
14
views
How to make safari driver invisible to sites that fight against selenium
How to make safaridriver invisible to sites that fight against selenium.
Sometimes we need to work with safaridriver and at these moments it is a pain to meet anti-selenium protection or anti-...
0
votes
0
answers
26
views
How to set Safari Selenium WebDriver user agent in Python?
I am creating a Safari WebDriver instance with:
import selenium.webdriver
driver = webdriver.Safari()
Now I'd like to set a custom user agent for the browser. I have noticed that the Safari ...
0
votes
1
answer
38
views
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 = ...
0
votes
0
answers
58
views
Safaridriver not support select audio/ video device
Problem
In Mac OS, when use Safaridriver open a Safari browser for WebRTC samples, the audio input source only display Mock device (audio: Mock audio device 1/ Mock audio device 2 , video: Mock video ...
0
votes
0
answers
61
views
Safari driver opens a session, but can't continue it (selenium tests)
I followed several tutorials to configure Safari browser to run selenium tests via Jupyter notebook, but nothing worked.
A session opens (I checked session ID), but I can't click on "Continue ...
0
votes
0
answers
32
views
[WebRTC]When Safari is in remote automation, it can only use mock capture devices
Nice to meet you. I'm remotely controlling the Safari to start a WebRTC sample, but when I select Audio&Video device, it can only shows the Mock device rather than real device, the images below ...
0
votes
0
answers
76
views
Device pixel ratio with Safari WebDriver
I am trying to obtain high DPI screenshots with Selenium Python for testing.
Using chromedriver, I can emulate a device pixel ratio other than 1.0 with the following.
DPR = 2.0
options = webdriver....
1
vote
2
answers
105
views
How to initialize JS variables through Selenium python?
I am trying to execute a JS file through python, selenium but I think I miss something.
I tried to call the checking variable from safari console, but it shows the following error Can't find the ...
0
votes
1
answer
123
views
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 ...
0
votes
0
answers
95
views
Getting pop up blocking while executing serenity tests in safari browser
I am using serenity BDD framework for all the browsers. While executing the test,it’s failing due to getting pop up blocked extension.
By adding -disable-extensions in serenity.properties file ...
0
votes
0
answers
45
views
safaridriver does not work when selenium process started with pm2, crontab or any such launch daemons
On Mac Catalina and above, probably due to the new security feature in "Security & Privacy" -> "Full Disk Access", if a selenium hub is running through pm2 or any daemon ...
0
votes
2
answers
113
views
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 ...
0
votes
0
answers
66
views
I have a Selenium script that opens a URL in Chrome and saves the webpage as a PDF. How do I rewrite it to do the same in Safari?
I'm brand new to programming and need your help.
I'm a fan of the website nofilmschool.com and like to save their blogposts as PDFs with Safari's Reader View and print dialog. I use these PDFs for ...
0
votes
0
answers
61
views
How to interact with Safari Browser while it is remotely controlled by selenium?
During some automation test using python & selenium I would like to take actions by myself. I mean I want to click on elements sometimes, and I got the bellow error. I stopped the session but the ...
0
votes
1
answer
180
views
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=#{...
0
votes
0
answers
260
views
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....
1
vote
0
answers
90
views
.perform() not working with Cataline safari 13.1 Browserstack [duplicate]
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:
...
1
vote
1
answer
429
views
RobotFramework - WebDriverException: Message: Service /usr/bin/safaridriver unexpectedly exited. Status code was: 1
I'm using Robot Framework to execute some tests on the products of the society I'm working in. Actually, my tests are running on a macOS machine. I can remotely launch tests on firefox and chrome and ...
2
votes
0
answers
200
views
Selenium click is not working after upgrading to ios14 and safari14
I have a setup of macOS Catalina with an iPad on iPadOS14/safari14. I have also upgraded both safari and safaridriver on the attached mac. Selenium fails to click and send a text to ios safari and ...
0
votes
1
answer
285
views
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":"./...
0
votes
1
answer
1k
views
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 ...
0
votes
1
answer
167
views
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 ...
1
vote
0
answers
345
views
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 ...
0
votes
1
answer
858
views
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 ...
0
votes
2
answers
568
views
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. ...
0
votes
0
answers
536
views
Selenium_Tab switching is not working in Safari browser [duplicate]
Still looking for resolution for following problem:
In Safari version 12: org.openqa.selenium.InvalidArgumentException: Request body does not contain required parameter 'handle'. I did see some ...
1
vote
1
answer
429
views
Unable to open 'File choose' dialog in MacOS using safaridriver in python
I am trying to launch file choose dialog by clicking on 'Choose File' button in a web portal. The click event happens, but the dialog is not displayed. Even if we click on the 'Choose File' button ...
4
votes
4
answers
2k
views
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 ...
1
vote
0
answers
210
views
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('...
0
votes
1
answer
303
views
Is there a way to disable Safari Webdriver Glass Pane
According to Apple's Safari Webdriver Doc, a glass pane is inserted while running automation windows to prevent interaction with the browser while it is being used for Webdriver testing. Is there a ...
3
votes
1
answer
957
views
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, ...
0
votes
1
answer
183
views
Safari does not support execution of automation scripts on multiple thread,
Safari does not support execution of automation scripts on multiple threads, Please let me know if there are any alternatives to run selenium tests in parallel. I am running tests in parallel on other ...
1
vote
1
answer
147
views
A JavaScript exception occured: Cannot check the displayedness of a non-Element argument - error when trying to interact with webelements
This exception occurs at the line of '.click()' , '.sendkeys() or any other actions that is about to perform on an element. Webelement is accessible but actions on those webelement throw the below ...
0
votes
1
answer
585
views
How to switch to new tab using selenium C# for Safari Browser
I want to switch to new tab opened by clicked link in Safari browser for MACOS.
Code which is used for Chrome is not working for Safari browser.
driver.SwitchTo().Window(driver.WindowHandles.Last());...
0
votes
1
answer
172
views
Safari 13 pops up 'Glass Pane' when using Selenium sendKeys() to <input type="file"> element
NOTE: The same thing is working as expected in Safari 12.1.2 but it's broken in Safari 13.0 & 13.1
Issue: System pops up 'Glass Pane' when using Selenium sendKeys() method to element.
...
0
votes
1
answer
543
views
How to handle basic url authentication using selenium in Safari browser
In chrome below solution is working:
driver.get("https://username:password@something.com");
In firefox below solution is working:
driver.get("https://username:password@something.com);
and then:
...
0
votes
3
answers
1k
views
Click event not working in Safaridriver on Catalina OS where the same working on Firefox and chrome
Click action is not performed in the Safaridriver on OS Catalina Safari v13.02
Tried working with javascript which is working fine , but that's the work around and it doesn't go with my existing ...
0
votes
1
answer
100
views
Error when I run auto test with browser. How run it?
I need to run autotests. But both in Safari and in FireFox, such an error occurs. Safaridriver cannot be installed in Safari with version 10+. I tried to add drivers for these browsers to the project, ...
2
votes
1
answer
2k
views
Running e2e tests in headless safari using nightwatch
I have writing e2e tests to be run in headless mode in all the major browsers like chrome, safari, firefox. Headless mode is working fine on chrome and firefox but not working on safari. When i ran my ...
0
votes
1
answer
832
views
Unable to perform parallel execution on safari on mac using selenium
I have around 1600 java TCs written using selenium.
While executing test scripts in parallel (say thread count = 5), I am able to trigger 5 safari webdrivers and scripts are executing parallel.
But, ...
1
vote
1
answer
945
views
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 ...
1
vote
0
answers
253
views
Webdriver Python disable browser push notifications in Safari
I'm using Python to run Selenium WebDriver and am trying to disable browser push notifications in Safari. I have been able to do this in my set up for Chrome and Firefox.
In Firefox I use the ...
3
votes
1
answer
438
views
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=<path>
InvalidArgumentException: ...
1
vote
1
answer
683
views
WebDriver wait command is failing for Safari on Mac OS
I have script to login to a site and then waiting for home button to get loaded. I have put fluentwait to wait for element to be visible. But WebDriver is not waiting and failing immediately as the ...
0
votes
0
answers
1k
views
How to increase RemoteWebDriver's HTTP request timeout
I am using selenium "selenium-server-standalone-3.141.59.jar" and started hub and node as shown below. Hub is running on a Windows PC and the Safari node is on a MacMini.
java -Xmx4000m -jar selenium-...
1
vote
3
answers
1k
views
Why can't SafariDriver click on a specific element when Chrome, FF, Edge can?
I have a trouble when running Safari UI tests on MAC. I have an element:
wd.find_element_by_xpath("//div[@id='ZoomBundle_people_search__searchTab-innerCt']//fieldset//span[text()='Company Information'...
0
votes
0
answers
69
views
Couldn't locate an element by these strategies: By.id; OpenQA.Selenium.WebdriverTimeoutExceltpion: Timed out after 1 seconds
I have written an automation framework in VS2017 using Selenium Webdriver in C# and PageObjects. That is working absolutely fine in windows. Same PageObjects code is used in VS2017 for MAC OS and it ...
2
votes
0
answers
724
views
unable to enter credentials in input box in iframe (i.e cross domain) for safari browser through java selenium
As part of our test scenario, there is a 3Dsecure window where I need to enter username, password and click submit button.
This works fine for chrome browser with java and selenium webdriver.
driver....
0
votes
1
answer
360
views
Is there a way to run nightwatch on Safari v12.1?
My mac auto-updated safari to v12.1, but now I can't run my nightwatch tests against safari. I just always get the error: "Request body does not contain required parameter 'capabilities'.". I think it'...
0
votes
1
answer
513
views
WebDriverException: /usr/bin/safaridriver unexpectedly exited error when running in CircleCI container
I'm using Selenium + Python 2.7 to run automated tests in CircleCI without any problem but when I try to run them using Safari browser I get following error and tests inmediately exit:
...