Skip to content

Commit

Permalink
Revert "Encode timeouts the w3c way too"
Browse files Browse the repository at this point in the history
Even more tests failed. Thought I'd run them with firefox,
had run them with Chrome. *sigh*

This reverts commit 0e41af5.
  • Loading branch information
shs96c committed Mar 10, 2017
1 parent 0e41af5 commit c32d893
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -833,23 +833,20 @@ protected class RemoteTimeouts implements Timeouts {

public Timeouts implicitlyWait(long time, TimeUnit unit) {
execute(DriverCommand.SET_TIMEOUT, ImmutableMap.of(
"implicit", TimeUnit.MILLISECONDS.convert(time, unit),
"type", "implicit",
"ms", TimeUnit.MILLISECONDS.convert(time, unit)));
return this;
}

public Timeouts setScriptTimeout(long time, TimeUnit unit) {
execute(DriverCommand.SET_TIMEOUT, ImmutableMap.of(
"script", TimeUnit.MILLISECONDS.convert(time, unit),
"type", "script",
"ms", TimeUnit.MILLISECONDS.convert(time, unit)));
return this;
}

public Timeouts pageLoadTimeout(long time, TimeUnit unit) {
execute(DriverCommand.SET_TIMEOUT, ImmutableMap.of(
"pageLoad", TimeUnit.MILLISECONDS.convert(time, unit),
"type", "page load",
"ms", TimeUnit.MILLISECONDS.convert(time, unit)));
return this;
Expand Down

0 comments on commit c32d893

Please sign in to comment.