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 bce437c commit 90b4c3aCopy full SHA for 90b4c3a
webdriver-ts/src/webdriverAccess.ts
@@ -42,7 +42,7 @@ async function findByXPath(node: WebElement, path: string): Promise<WebElement>
42
for (let p of paths) {
43
// n = n.then(nd => nd.findElements(By.tagName(p.tagName))).then(elems => { // costly since it fetches all elements
44
let elems = await n.findElements(By.css(p.tagName+":nth-child("+(p.index)+")"));
45
- if (elems==null || elems.length==0) { console.log("not found"); return null};
+ if (elems==null || elems.length==0) { return null};
46
n = elems[0];
47
}
48
} catch (e) {
0 commit comments