You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Add selector attribute to Locators #10126
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]().
Activity
pavelfeldman commentedon Nov 8, 2021
What is your use case?
kumaraditya303 commentedon Nov 9, 2021
I want to create locator from a locator by passing an instance and log the current locator selector for introspection afterwards.
TimeInvestor commentedon Nov 9, 2021
Kumar Aditya (@kumaraditya303) do you mean this #10178
pavelfeldman commentedon Nov 9, 2021
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
toStringand[(util.inspect as any).custom]().