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

As a user I want to see full locator path at any given moment #90

Open
oshtaier opened this issue Mar 27, 2018 · 6 comments
Open

As a user I want to see full locator path at any given moment #90

oshtaier opened this issue Mar 27, 2018 · 6 comments
Assignees

Comments

@oshtaier
Copy link

We should be able to see both in logs and in debug full locator description no matter where I am currently executing my code. For example:

ROOT = ".//a"
CHECKBOX = ".//input"

So for checkbox I should see not only ".//a//input", but full path like "//view_or_whatever//a//input"

@oshtaier
Copy link
Author

That is critical issue as currently it is impossible to debug issues or it take huge amount of time

@mfalesni
Copy link
Contributor

mfalesni commented Mar 27, 2018

This is effectively impossible, as the locator resolution is gradual and any kind of locator can be mixed together and also custom code can influence the resolution as well.

@mfalesni
Copy link
Contributor

WebElements could be monkey patched to contain the list of resolution steps that were taken to get it, but that is not suitable for logging, only for manual debug exploration.

@oshtaier
Copy link
Author

so you want to say that you cannot debug locators in any way?

@mfalesni
Copy link
Contributor

The way you want it, no.

@abalakh
Copy link

abalakh commented Dec 4, 2018

@izapolsk could you please pick this issue?

@izapolsk izapolsk self-assigned this Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants