In the linked screenshot below, it's a rating out of 5. If a 1 star rating is given by the user. The HTML looks like this:.
However, if let's say a four star rating is given the HTML looks like this:
I want to get the user rating so "1" or "4" repsctively in the screenhots above.
So far I have got this:
.//td[@class='review-rating-header seat_comfort']/following-sibling::td[@class='review-rating-stars stars']//span[contains(concat(' ', @class, ' '), ' fill ')]
If you want the last
span with class
span[contains(concat(' ', @class, ' '), ' fill ')][last()]