Replies: 3 comments
-
No, we don't surface the node path in the xpath format. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is there a way to retrieve the XPath for that element? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you!
Paul Irish" ***@***.***> wrote:
This method translates the node path to an XPATH: https://source.chromium.org/search?q=f:node.cc%20symbol:PrintNodePathTo&sq=&ss=chromium%2Fchromium%2Fsrc
Obviously you can't use it directly but it shouldn't be too bad to port.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kbpillai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Lighthouse JSON, the selector value seems not to be accurate all the time. the PATH comes as "2,HTML,0,HEAD,3,SCRIPT" etc., Is there a way to retrieve the actual XPATH or FullXPath in JSON?
Beta Was this translation helpful? Give feedback.
All reactions