We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 051617d commit 8d98b79Copy full SHA for 8d98b79
lib/ferrum/frame/dom.rb
@@ -36,15 +36,15 @@ def body
36
evaluate("document.documentElement.outerHTML")
37
end
38
39
- def wait_for_selector(css: nil, xpath: nil, timeout: 1000, interval: 100)
+ def wait_for_selector(css: nil, xpath: nil, timeout: 5000, interval: 100)
40
tap do
41
evaluate_func(%(
42
function(selector, isXpath, timeout, interval) {
43
var attempts = 0;
44
var max = timeout / interval;
45
function waitForSelector(resolve, reject) {
46
if (attempts > ((max < 1) ? 1 : max)) {
47
- return reject(new Error("Not found element match the selector:" + selector));
+ return reject(new Error("Not found element match the selector: " + selector));
48
}
49
var element = isXpath
50
? document.
0 commit comments