Selenium WebDriver and Operational Driver

I would like to run the Selenium WebDriver tests in Opera, but when I looked at the Opera driver in Selenium HQ and the GitHub page , it says:

Opera driver requires Opera 12.x and earlier

Please note that OperaDriver is only compatible with Presto-based Operas until 12.16. Blink-based operations (15 onwards) are not supported.

Opera is now up to version 22.0, which goes beyond the maximum supported version 12. So, my questions are: -

  • If there is no Opera driver for Selenium, then how to automate Opera tests?
  • It seems strange to dwell on version 12, even taking into account the underlying technology. Is Opera support supported, or is it that Selenium WebDriver is no longer the best tool?
+6
source share
3 answers

Opera has just released an early beta version of WebDriver for its Blink-based browsers. See https://github.com/operasoftware/operachromiumdriver

To indicate from the provided link:

OperaChromiumDriver can be used without additional configuration in versions of Opera based on Chromium starting from version 26. To drive Opera browsers based on Presto, refer to the OperaPrestoDriver project.

Although versions earlier than 26 are not officially supported, OperaXhromiumDriver v. 0.1.0 works with Opera 25. On Windows, you may need to use the "binary" option in "operaOptions".

+6
source

1 and 2)

There are 2 types of Opera - based on Java and Chrominium.

The links provided are for Java based on Opera.

https://github.com/operasoftware/operadriver#desktop

There is no official support for the latest versions of Opera.

+2
source

Download OperaDriver from here and write the following code for java:

System.setProperty("webdriver.opera.driver", "D:/Ripon/operadriver_win64/operadriver.exe"); WebDriver driver = new OperaDriver(); driver.get("https://duckduckgo.com/"); 
+1
source

Source: https://habr.com/ru/post/972134/


All Articles