Skip to content

Commit

Permalink
[java] only download the needed drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Aug 26, 2023
1 parent 6680228 commit 0b16280
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public WebDriver get() {

return ServiceLoader.load(WebDriverInfo.class).stream()
.map(ServiceLoader.Provider::get)
.filter(WebDriverInfo::isAvailable)
.filter(info -> info.isSupporting(capabilities))
.filter(WebDriverInfo::isAvailable)
.findFirst()
.orElseThrow(
() ->
Expand Down

0 comments on commit 0b16280

Please sign in to comment.