Skip to content

I.waitFor* methods not working with v2.6 and playwright 0.12.1 #2314

Closed
@chilikasha

Description

@chilikasha

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions