I understand that to work on opera versions > 12.X, Operachromiumdriver has been developed. At the same time I couldn\'t get this to work. I downloaded the windows version o
I have found the solution running opera 25+ using OperaChromiumDriver.exe.
Use the following code to open Opera
System.setProperty("webdriver.chrome.driver", "C:/Users/user/Downloads/operadriver-0.1.0-win32/operadriver-0.1.0-win32.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com");
driver.findElement(By.name("q")).sendKeys("Selenium");
I have used new ChromeDriver()
. This will start Opera since we are using OperaChromiumDriver
. I think this is because the new Opera is based on Chromium and OperaChromiumDriver is a WebDriver implementation derived from ChromeDriver [See https://github.com/operasoftware/operachromiumdriver].
Hope this helps you.