Skip to content

[Feature] Add selector attribute to Locators #10126

Closed

Description

When passing an instance of locator, I want to get the selector from the locator, hence a getter attribute would be great.

Activity

  1. pavelfeldman commented on Nov 8, 2021

    @pavelfeldman
    Member

    What is your use case?

  2. kumaraditya303 commented on Nov 9, 2021

    @kumaraditya303
    ContributorAuthor

    I want to create locator from a locator by passing an instance and log the current locator selector for introspection afterwards.

  3. TimeInvestor commented on Nov 9, 2021

    @TimeInvestor
  4. pavelfeldman commented on Nov 9, 2021

    @pavelfeldman
    Member

    The locator is more than just a selector, today it is a frame as well, so exposing selector becomes too much of a commitment for us. We need a real world use case to consider it. It looks like your use case is better addressed via toString and [(util.inspect as any).custom]().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions