How to click a link in WebDriver using Python? -
<tr><td class=wb><a href="javascript:void(fight())" style='text-decoration:none'><b>click here!</a></td></tr>
hi, how click url?
i'm not sure, try this:
elements = driver.find_elements_by_tag_name("td") element in elements: if element.text == "click here!": element.click()
or:
elements = find_elements_by_class_name("wb") element in elements: if element.text == "click here!": element.click()
Comments
Post a Comment