Skip to content

[FEATURE REQUEST](playwright) migrate locators from ElementHandle to Locator.  #3677

Closed

Description

@EgorBodnar

What are you trying to achieve?

In the CodeceptJS Playwright helper all locators are tied to ElementHandle, but it is officially discouraged/deprecated.

Need to move to the Locator

The whole Playwright helper should be changed due to migration to the Locator

Activity

  1. EgorBodnar commented on Jun 4, 2023

    @EgorBodnar
    ContributorAuthor

    As a temporary solution, use the function getXPathForElement(elementHandle) in the Playwright helper.

    Because all the new Playwright functionality is tied to the Locator and it is impossible to use the new Playwright API for elements found through the ElementHandle only if it does not match with devtools-protocol API.

    And in the ConceptJS, the elements are searched for in the old way.
    Migration would be not so fast.

  2. added a commit that references this issue on Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions