Selenium.common.exceptions.webdriverexception: Message: Failed To Convert Data To An Object While Trying To Click An Element With Selenium And Python
im trying to click a button on a page after logging in the button is the following HTML
Using XPATH
:
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//button[@class='yms-button-primary-alt ng-isolate-scope' and @csv-header='getCsvHeader'][contains(., 'CSV')]"))).click()
Note : You have to add the following imports :
from selenium.webdriver.support.uiimportWebDriverWaitfrom selenium.webdriver.common.byimportByfrom selenium.webdriver.supportimport expected_conditions asEC
Post a Comment for "Selenium.common.exceptions.webdriverexception: Message: Failed To Convert Data To An Object While Trying To Click An Element With Selenium And Python"