Skip to content

Commit

Permalink
Support configuring a Selenium server without the default set of driv…
Browse files Browse the repository at this point in the history
…er configurations.
  • Loading branch information
jleyba committed Sep 6, 2013
1 parent 6b4ffab commit f48f97f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ public DefaultDriverSessions() {
this(Platform.getCurrent(), new DefaultDriverFactory());
}

public DefaultDriverSessions(
DriverFactory factory, Map<Capabilities, Class<? extends WebDriver>> drivers) {
this.factory = factory;
for (Map.Entry<Capabilities, Class<? extends WebDriver>> entry : drivers.entrySet()) {
registerDriver(entry.getKey(), entry.getValue());
}
}

protected DefaultDriverSessions(Platform runningOn, DriverFactory factory) {
this.factory = factory;
registerDefaults(runningOn);
Expand Down

0 comments on commit f48f97f

Please sign in to comment.