Closed badavid closed 11 years ago
Copying SafariOptions is not sufficient. Other files are also changed: https://github.com/SeleniumHQ/selenium/pull/87/files. Besides the updated files, you also need all dependencies within your classpath to compile it.
I have put instructions on building the driver with Safari extensions support at the bottom of my post at http://stackoverflow.com/a/17117849/938089, use Ctrl + F "Getting SafariDriver and OperaDriver" to quickly get to the point.
I send you an email
I've mailed a build of Selenium with the updated SafariDriver. PR https://github.com/SeleniumHQ/selenium/pull/87 is about to be accepted, so future users can use the new features without much hassle.
I'm on Windows7. Safari 5.1.7 I have copy SafariOption.java on my project workspace and execute this code SafariOptions options = new SafariOptions(); options.addExtensions(new File("pathToMyExtension.safariextz")); DesiredCapabilities capabilities = DesiredCapabilities.safari(); capabilities.setCapability(SafariOptions.CAPABILITY, options); SafariDriver driver = new SafariDriver(capabilities);
The driver open as a SafariDriver correctly. I expected that the extension pathToMyExtension.safariextz who be load on my driver and it's not