Issue
I am looking site. In inspect element see this:
<span id="item60" title="Havai 30" class="item button link">Get</span>
<span id="item90" title="Classic 50" class="item button link">Get</span>
Need to get and click element by title. Something like this:
browser.find_element_by_xpath('//*[@id="item60"]').click()
But via title.
Solution
Like barak manos said the answer was:
'//*[@title="Havai 30"]'
With [0] at ending, case it was list.
Answered By - cask
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.