Selenium WebDriver and Opera Driver

后端 未结 3 1281
名媛妹妹
名媛妹妹 2020-12-18 23:31

I would like to run my Selenium WebDriver tests on Opera, but when I had a look at the Opera driver at Selenium HQ and GitHub page, it says:

Opera Driver

相关标签:
3条回答
  • 2020-12-19 00:16

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

    To quote from the link provided:

    OperaChromiumDriver can be used without extra setup on Chromium-based versions of Opera starting from version 26. For driving Presto-based Opera browsers, refer to the OperaPrestoDriver project.

    Although versions earlier than 26 aren't officially supported, the OperaChromiumDriver v. 0.1.0 works with Opera 25. On Windows using the 'binary' option in 'operaOptions' may be needed.

    0 讨论(0)
  • 2020-12-19 00:20

    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/");
    
    0 讨论(0)
  • 2020-12-19 00:30

    1 & 2)

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

    The provided links are for Java based Opera.

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

    There is no official support for latest Opera versions.

    0 讨论(0)
提交回复
热议问题