0

Please refer to attached print, I want to access - value attribute under role = progress.

How can i get the Xpath of it ?

enter image description here

  • Have a look at this other question if your goal to get the status of each download: https://stackoverflow.com/questions/48263317 – Florent B. Feb 12 '18 at 15:38
  • Given one particular source document, finding an XPath to select a particular node is both trivially easy and useless (if you know what's in the document then you don't need to look). The reason you want an XPath expression is presumably because the document might be a bit different from this: and to find a suitable XPath expression, we need to know how the document might differ from the one shown. – Michael Kay Feb 12 '18 at 17:07

1 Answers1

1

The xpath you need is:

//paper-progress[@role='progressbar']

Hit F12 in chrome, go to Console tab and typ:

$x("//paper-progress[@role='progressbar']")

Do this once the page is loaded properly and see if you get an element back.

Anand
  • 1,899
  • 1
  • 13
  • 23
  • 1
    I don't see how this could work since the targeted element is in a shadow-root. Do you get a result your console? – Florent B. Feb 12 '18 at 16:14