This is my problem: i have this html
as you can see there are two <div class="sc-fjhmcy dbJOiq flight-information"></div> and, i want to get the element using the class attribute, but only with the flight-information value, because I think the part that is written as nonsense code ("sc-fjhmcy dbJOiq...) change daily
<div class="sc-fjhmcy dbJOiq flight-information"></div>
I have already tried with this xmlpath, $x('//div[contains(@class, "flight-information)"'], but its not working, What could I do?...
$x('//div[contains(@class, "flight-information)"']
I checked your code and I think that there is no big issue with this. You need to use one class name to get the element, not two names, as below. $(".sc-fjhmcy") Then, this will be run correctly. Best regards
1.4m articles
1.4m replys
5 comments
57.0k users