-2
I’m having trouble trying to click a button (Input) HTML with Selenium on Internet Explore.
When executing the command click()
nothing happens nor even errors are presented. Follows below the layout of the HTML code of the Button and then my code in Python.
<td>
<input type = "button" class='botao' value='adicionar todos' onclick="AdicionarTodos()">
<input type = "button" class='botao' value='remover todos' onclick="RemoverTodos()">
</td>
NOTE: I wish to click on the first option "add all"
add_todos_botao = driver.find_element_by_xpath("XPATH")
add_todos_botao.click()
OBS:the XPATH
of the object was captured by the google inspection Chrome and used in Internet Explore.
<td> <input type = "button" class='boot' value='add all' onclick="Added()"> <input type = "button" class='boot' value='remove all' onclick="Removed()"> </td>
– Caique Garcia Pinto
Could add error message that occurs?
– Danizavtz
@Danizavtz, does not return any error. The button just does not perform the expected action.
– Caique Garcia Pinto