Using Python bindings, Selenium WebDriver click() is not working sometimes.

You could try substituting .click() with .send_keys("\n"), which is equivalent to “Pressing enter while focusing on an element”.

So this:

driver.find_element_by_link_text('PurchaseOrder').click()

would become this:

driver.find_element_by_link_text('PurchaseOrder').send_keys("\n")

Leave a Comment