Hot answers tagged

3

No The highest version of Safari for Windows is too old. It's also not able to handle many modern web technologies, so you're better off using either a containerized version of Safari, or sticking to Mac OS to test Safari.


2

Apparently not possible at the moment (or in the near future from the tone of the following statement). From https://developer.apple.com/documentation/webkit/about_webdriver_for_safari: One Session at a Time, to Mimic User Interaction Only one Safari browser instance can be active at any given time, and only one WebDriver session at a time can be ...


2

The short answer is no. The longer answer is I'm not 100% sure but I'm fairly confident the answer is no. I've worked at Sauce Labs for a few years now, several of them in support. I've done a lot of hacking to try to make Safari and other Webdriven browsers play nice, and Safari has always been the most impenetrable. Since creating SafariDriver for Safari ...


2

Safari: Let's get this one out the way. Like fellow contributors already commented below your question, testing Safari on Windows will be an uphill battle since Apple basically dropped this configuration. Since you won't likely be able to run and test the latest Safari browser on Windows, you're just better off setting up a MacOS/Safari node in your Selenium ...


2

After working on this for a few hours with a colleague and doing some in-browser debugging in Safari we came to the following conclusion: The element was not visible ('below the fold') and Safari was not able to find the element to then click on. The solution was to scroll to the area of the page where the element existed by finding a nearby element ...


2

It can't be done in Selenium (outside of Java's Robot class), but you can configure your test system(s) to login using Apple's Keychain as this SuperUser answer points out. As a follow up answer points out, you can do wildcard matches on the domains now.


1

For the last 30 hours I was looking for a solution and couldn’t find a solution for safari iOS. As a workaround I just extract the iframe's src URL at the middle of my test and I navigate to the iframe's URL, This is how it looks like, and now I was able to perform my test steps. String ccURL = driver.findElement(frmPayment).getAttribute("src")....


1

In every testing company, automation testing services teams may face this type issue related to focusing a webElement. This can be done by doing mousehover actions by selenium or by java script. Below is one way of getting the focus on webElement: C#: ((IJavaScriptExecutor)webDriver).ExecuteScript("arguments[0].scrollIntoView(true);", webElement); ...


1

https://www.w3schools.com/jsref/met_html_click.asp click() is an action but hover() is a event , so calling hover over the element doesn't do anything . It is used define what should happen when user hovers over the element. Using action class is the best way , but still if you want to use javascript use: arguments[0].focus() Note: in the example the link ...


1

Currently you cannot even load Safari extensions with Selenium anymore, atleast since Selenium 3.x. If I was building a Safari extension I would write a lot of unit and component test. Then either test the wiring (e.g. end-to-end Smoke tests) manual or with something like Sikuli. Even the Safari extension developer documentation does not speak about ...


1

With an earlier version of selenium 2.11 we had option OperaDriverSettings object to set opera binary path OperaDriverSettings settings = new OperaDriverSettings(); settings.setOperaBinaryLocation("/path/to/opera"); WebDriver driver = new OperaDriver(settings); Since around selenium 2.15, the OperaDriverSettings object doesn't exist.. another option is ...


Only top voted, non community-wiki answers of a minimum length are eligible