Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium tests broken by recent update of safari to version 13?

does anybody have a problem of selenium tests failing on new safari version 13. Ran the same tests on chrome and firefox and it works fine. Also tested it on older version of safari and it works fine.

I didn't manage to pin point exactly where it fails. One case I did notice is that on safari 13 selenium click on <div role='button' aria-haspopup='true'>....</div> invokes no action(in my case opens a popup menu). And test proceeds to the next line of code. note however at this point I am not claiming that this kind of click always fails, it's just where I noticed it in my tests.

If anyone came across this kind of issue on safari 13 please provide your input. Thanks

like image 669
mihajloK Avatar asked Sep 24 '19 11:09

mihajloK


People also ask

Does Selenium support Safari browser?

Yes Selenium webdriver supports Safari browser. Safari is a prominent browser and is provided by default by Apple devices. For Safari versions 10 and greater than 10, the safaridriver comes automatically and is not required to be installed separately.

How do I run Selenium test in Safari?

How do I automate Safari browser using Selenium? Step 1: Download and Install the Safari Browser Extension. Step 2: Enable the WebDriver Browser Extension by going to Safari > Preferences and open the preferences window and then enable the “Enable WebDriver“ option. Step 3: Restart your Browser.

Why do Selenium tests fail?

In every software testing process, there are inevitably times when test cases fail. Test cases usually fail due to server and network issues, an unresponsive application or validation failure, or even due to scripting issues.

What is WebDriver for Safari?

Overview. WebDriver, Selenium's cross-platform, cross-browser API, automates testing of web content interactions on all major platforms and browsers, without requiring browser-specific code.


1 Answers

Safaridriver maintainer here.

This is a known issue that we believe has already been fixed in Safari Technology Preview Release 91. Please verify whether the issue reproduces using latest STP's safaridriver, and reach out to me on Twitter, @brrian.

like image 189
Brian Burg Avatar answered Sep 27 '22 21:09

Brian Burg