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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -