-
-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playwright: WebKit: I.waitForText() with XPath element fails: TypeError: $XPath is not a function #2913
Comments
Same for : |
I can see the same issue in method Code: Result: The number of elements ({xpath: .//*[contains(concat(' ', normalize-space(./@class), ' '), ' ReactVirtualized__Grid__innerScrollContainer ')]//div[@role = 'row']}) is not 2 after 60 sec
page.waitForFunction: TypeError: $XPath is not a function. (In '$XPath(null, locator)', '$XPath' is "function $XPath(element, selector) {
const found = document.evaluate(selector, element || document.body, null, 5, null);
const res = [];
let current = null;
while (current = found.iterateNext()) {
res.push(current);
}
return res;
}") When I use Used SW:
|
I think its basically any method that uses xpath locators with a combination of wait?
|
Same problem for me too, Webkit |
Closed for now! Feel free to reopen if you still encounter the issue with latest version and would be nice to provide a sample code to reproduce the issue. |
Which version contains the fix? Would love to see the corresponding commit. |
we moved to use Locator so I think that solved the issue -> https://github.com/codeceptjs/CodeceptJS/blob/3.x/lib/helper/Playwright.js#L2637 |
Still I can see the issue for
|
i can reproduce the same issue. did a workaround by replacing my |
What are you trying to achieve?
should pass
What do you get instead?
It fails:
Note that only WebKit browser is affected. It works well in Chromium and Firefox Nightly.
Details
The text was updated successfully, but these errors were encountered: