forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement ability to load driver providers using ServiceLoader. A use…
…r can add new providers or override existing ones. To use this ability a user should: 1) Create one or several classes that implement DriverProvider interface and have no-args constructor. The method getProvidedCapabilities should return capabilities to match against. The method newInstance should implement custom driver creation logic. 2) Create a file META-INF/services/org.openqa.selenium.remote.server.DriverProvider and list your classes in this file (one full class name per line). 3) Start selenium server (or a node grid) with the classpath that includes your custom classes and META-INF directory that lists them. 4) Starting a node set -browser option with the parameters that correspont the capabilities returned by getProvidedCapabilities method of a provider. Also I'm going to add a wiki page that describes this new feature in more details.
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters