Skip to content

Commit 47b80dd

Browse files
author
whhone
committed
fixing usleep bug in WebDriverWait
The unit of usleep() is microsecond(10^6). The unit of interval is millisecond(10^3). p.s. thank for the catch from justkunz.
1 parent c288a36 commit 47b80dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WebDriverWait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function until($func_or_ec, $message = "") {
5656
if ($ret_val) {
5757
return $ret_val;
5858
} else {
59-
usleep($this->interval);
59+
usleep($this->interval * 1000);
6060
continue;
6161
}
6262
} catch (NoSuchElementWebDriverError $e) {

0 commit comments

Comments
 (0)