Skip to content

Commit 8d98b79

Browse files
committed
increase default timeout to 5 sec
1 parent 051617d commit 8d98b79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ferrum/frame/dom.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ def body
3636
evaluate("document.documentElement.outerHTML")
3737
end
3838

39-
def wait_for_selector(css: nil, xpath: nil, timeout: 1000, interval: 100)
39+
def wait_for_selector(css: nil, xpath: nil, timeout: 5000, interval: 100)
4040
tap do
4141
evaluate_func(%(
4242
function(selector, isXpath, timeout, interval) {
4343
var attempts = 0;
4444
var max = timeout / interval;
4545
function waitForSelector(resolve, reject) {
4646
if (attempts > ((max < 1) ? 1 : max)) {
47-
return reject(new Error("Not found element match the selector:" + selector));
47+
return reject(new Error("Not found element match the selector: " + selector));
4848
}
4949
var element = isXpath
5050
? document.

0 commit comments

Comments
 (0)