Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consider storing "raw selector" of locator to be able to log it as it is #438

Open
yashaka opened this issue Sep 13, 2022 · 2 comments
Open

Comments

@yashaka
Copy link
Owner

yashaka commented Sep 13, 2022

It will be possible to define custom selectors in Selene soon.

E.g. you will be able to configure Selene to search by text, when somebody wraps words into «Here», for example the browser.element('«Create document»') will be translated automatically to browser.element('//*[text()="Create document"]').

The goal of this issue is to ensure, that use is able to see in log the original «Create document» selector, if he wants (yet in error message, he should be able to see the actual transpiled selector)

@aleksandr-kotlyar
Copy link
Collaborator

@yashaka I don't think that browser.element('"Create document"') will be simple to understand what it under hood. It's better to use
browser.element(by.text('todos')). But may be I don't understand something, and you used this just like example to reach the goal of two-level logging, not implementing browser.element('"Create document"') directly 🙂

@yashaka
Copy link
Owner Author

yashaka commented Sep 14, 2022 via email

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

No branches or pull requests

2 participants