widgetastic.core icon indicating copy to clipboard operation
widgetastic.core copied to clipboard

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

Open oshtaier opened this issue 7 years ago • 6 comments

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 avatar Mar 27 '18 11:03 oshtaier

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

oshtaier avatar Mar 27 '18 11:03 oshtaier

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 avatar Mar 27 '18 11:03 mfalesni

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.

mfalesni avatar Mar 27 '18 11:03 mfalesni

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

oshtaier avatar Mar 27 '18 13:03 oshtaier

The way you want it, no.

mfalesni avatar Mar 28 '18 13:03 mfalesni

@izapolsk could you please pick this issue?

abalakh avatar Dec 04 '18 16:12 abalakh