Unable to click on button of a search result with Selenium / Python -
i'm using selenium , coding in python.
i'm having trouble getting script click on first button (id=ita_form_button_linkbutton_0
), first available option , cheapest option. error message instead: attributeerror: 'webelement' object has no attribute 'send_click'
this code have:
element_result = ui.webdriverwait(driver, 60).until( lambda driver : driver.find_elements_by_css_selector("[id*=ita_form_button_linkbutton") ) element_result[0].send_click()
the idea click on first available option (button) cheapest option, weirdly wouldn't click. guys know why?
there send_keys
, click
in webelement
, no send_click
.
replace following line:
element_result[0].send_click()
with:
element_result[0].click()
Comments
Post a Comment