-1

When I right-click and copy XPath this is what I get

//*[@id="AssetPreview_0"]/div[7]/div/div[1]

The information I want to gather is 119 this is the price of the asset I want to buy. Whenever i put this into my XML it just returns me N/A I can't seem to figure out how to pick that row of information.

Thanks in advance

Code i try to get information out of

2
  • How does this relate to software testing? Can you bring more test context around this question?
    – Lee Jensen
    Oct 20 at 15:08
  • please add html as code not as image
    – PDHide
    Oct 20 at 20:17
0

Try this xpath

//*[text() = "119"]
2
  • did not help xD
    – Zplinter
    Oct 20 at 16:17
  • Hm.. Maybe try //*[@class = 'PriceDiff Negative' and text() = '119] or replace text() with @value Oct 20 at 16:59
0
//*[string() = "119"]

try string() method as text() will return only text nodes and not the entire text content

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.