Commit a928b4ad authored by hackhard's avatar hackhard
Browse files

Hopefully solved the js error

parent 69b42731
Pipeline #9522 passed with stage
in 2 minutes and 31 seconds
......@@ -329,11 +329,18 @@ class BaseFetcher:
if (document.documentElement.innerHTML.includes(arr[i])) {
s = (arr[i]);
path = "//*[contains(., '" + s + "')]";
console.log(path);
x = document.evaluate(path, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < x.snapshotLength; i++) x.snapshotItem(i).click();
for (var j = 0; j < x.snapshotLength; j++) {
try {
x.snapshotItem(j).click();
} catch (err) {
console.log(err)
}
}
}
}
"""
"""
)
# Get a copy of the URL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment