Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I dont succeed to use SafariOption #1

Closed
badavid opened this issue Jul 19, 2013 · 3 comments
Closed

I dont succeed to use SafariOption #1

badavid opened this issue Jul 19, 2013 · 3 comments
Labels

Comments

@badavid
Copy link

badavid commented Jul 19, 2013

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

@Rob--W
Copy link
Owner

Rob--W commented Jul 19, 2013

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.

@badavid
Copy link
Author

badavid commented Jul 19, 2013

I send you an email

@Rob--W
Copy link
Owner

Rob--W commented Jul 19, 2013

I've mailed a build of Selenium with the updated SafariDriver. PR SeleniumHQ#87 is about to be accepted, so future users can use the new features without much hassle.

@Rob--W Rob--W closed this as completed Jul 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants