-
Classes Class Description org.openqa.selenium.opera.OperaDriver Useorg.openqa.selenium.chrome.ChromeDriverwithorg.openqa.selenium.chrome.ChromeOptions#setBinary(File)ororg.openqa.selenium.chrome.ChromeOptions#setBinary(String)to set the path to the Opera browser.Example usage:
ChromeOptions options = new ChromeOptions() options.setBinary(new File("/path/to/opera")); // For using Opera browser with ChromeDriver: ChromeDriver driver = new ChromeDriver(options); // For use with RemoteWebDriver: ChromeOptions options = new ChromeOptions(); options.setBinary(new File("/path/to/opera")); RemoteWebDriver driver = new RemoteWebDriver( new URL("http://localhost:4444/"), options);org.openqa.selenium.opera.OperaOptions Useorg.openqa.selenium.chrome.ChromeDriverwithorg.openqa.selenium.chrome.ChromeOptions#setBinary(File)ororg.openqa.selenium.chrome.ChromeOptions#setBinary(String)to set the path to the Opera browser.Example usage:
ChromeOptions options = new ChromeOptions() options.setBinary(new File("/path/to/opera")); // For using Opera browser with ChromeDriver: ChromeDriver driver = new ChromeDriver(options); // For use with RemoteWebDriver: ChromeOptions options = new ChromeOptions(); options.setBinary(new File("/path/to/opera")); RemoteWebDriver driver = new RemoteWebDriver( new URL("http://localhost:4444/"), options);
-
Constructors Constructor Description org.openqa.selenium.opera.OperaDriver(Capabilities) UseOperaDriver(OperaOptions)instead.