Find and click element by title Python Selenium -


i 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 , click element title. this:

browser.find_element_by_xpath('//*[@id="item60"]').click() 

but via title.

like barak manos said answer was:

'//*[@title="havai 30"]' 

with [0] @ ending, case list.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -