Python Selenium Webdriver Selenium.common.exceptions.nosuchelementexception: Message: No Such Element: Unable To Locate Element
I understand my question is really common. However, despite my vigorous search on Google and SO, I have been unable to find anything to help me with my problem with Python Selenium
Solution 1:
Use WebDriverWait
() and element_to_be_clickable
() and use either of the xpath
or css selector
.
XPATH:
element = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, '//div[@class="am-form-group item-input"]/input')))
OR CSS selector
element = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, 'div.item-input>input')))
Post a Comment for "Python Selenium Webdriver Selenium.common.exceptions.nosuchelementexception: Message: No Such Element: Unable To Locate Element"