I use Selenium WebDriver in Java and I need to configure Safari and Opera browsers. For Opera almost work properly but I need to set Binary
System.setProperty("webdriver.opera.driver", dirPath + "\\src\\test\\resources\\operadriver64.exe");
OperaOptions op = new OperaOptions();
op.setBinary(new File("D:\\Program Files\\Opera\\47.0.2631.55\\opera.exe"));
driver = new OperaDriver(op);
driver.manage().window().maximize();
driver.get(baseUrl);
Is it possible to skip line setBinary and still working?
Second question is about Safari web browser. I use this code:
System.setProperty("webdriver.safari.driver", dirPath + "\\src\\test\\resources\\SafariDriver.safariextz");
driver = new SafariDriver();
and occurs error org.openqa.selenium.WebDriverException: SafariDriver requires Safari 10 running on OSX El Capitan or greater. Is it possible to run tests on windows 7 using Safari?