Skip to content Skip to sidebar Skip to footer

Unable To Click On An Ahref Link Using Python Selenium

This is the html code:

Solution 2:

As you can see from the error, the element you trying to access is not interactable. So, the problem is not with HTML. I can't see the page you working on, but the problem can be that element you trying to access is out of the view. Try this

from selenium.webdriver.common.action_chains import ActionChains

print = driver.find_element_by_id("dcf-printPdf")

ActionChains(driver).move_to_element(print).click(button).perform()

Post a Comment for "Unable To Click On An Ahref Link Using Python Selenium"