How to fetch Data on a web page, if the data is in data-value attribute?

Error
I want to fetch the value from here. But, I am not able to fetch data from this web page. I have tried Xpath, Dynamic Xpath, Class. The value is as an attribute in the div tag.
Can you please guide for this?

1 Like

Hi Trupti,

First of all check whether this element is present in any inner frame, if yes then try to locate frame first & then fetch the value.
Also, you need to write the xpath dynamically considering it’s previous matching element locator & reach to the exact locator after it.

2 Likes