-
-
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
I.waitFor* methods not working with v2.6 and playwright 0.12.1 #2314
Comments
maybe wait for this fix #2313 |
@peterngtr I see #2313 is fixed in 2.6.1, but I still get the same error for waitForElement().
|
From slack i believe this may be around custom locators, that detail is missing from this ticket |
Related to: microsoft/playwright#2197 Workaround: put css as strategy in custom locator plugin
We can probably fix this whilst we wait for playwright if they plan to fix |
Playwright have confirmed they will keep their xpath heuristic as is, so won't be fixing this issue, but that is okay because the linked pr resolves the issue, I need to do some tidying up of the pr, test fixes |
I got the same error when testing WebKit in Playwright: #2913 |
Looks like @Georgegriff's fix got reverted back |
What are you trying to achieve?
In some tests I have methods like
which where working fine.
What do you get instead?
After codecept and playwright updates methods fail without using timeout with error
Evaluation failed: SyntaxError: The string did not match the expected pattern.
Details
UPD: In this case I used custom locators.
in config file:
selector in page object:
emailField: "$login-input",
then used in a test (as example):
I.waitForElement(login.emailField, 20)
The text was updated successfully, but these errors were encountered: