Closed
Description
What are you trying to achieve?
In some tests I have methods like
I.waitForText(text, 25, locator)
I.waitForElement(locator, 10)
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
- CodeceptJS version: 2.6
- NodeJS Version: 12.16.1
- Operating System: Mac os 10.14.6
- Playwright: 0.12.1
UPD: In this case I used custom locators.
in config file:
plugins: {
customLocator: {
enabled: true,
attribute: "data-testid",
},
},
selector in page object: emailField: "$login-input",
then used in a test (as example): I.waitForElement(login.emailField, 20)