I'm trying to click on a dropdown button but it isn't working for me.
<button class="size-grid-dropdown size-grid-button" data-qa="size-dropdown">EU 44</button>
What I'm using:
driver.find_element_by_xpath('//*[@id="root"]/div/div/div[1]/div/div[3]/div[2]/div/section[1]/div[2]/aside/div/div[2]/div/div[2]/ul/li[9]/button').click()
I get the error:
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
(Session info: chrome=75.0.3770.52)
When I'm using:
element = WebDriverWait(driver,20).until(EC.presence_of_element_located((By.XPATH, '//* [@id="root"]/div/div/div[1]/div/div[3]/div[2]/div/section[1]/div[2]/aside/div/div[2]/div/div[2]/ul/li[11]/button"]')))
driver.execute_script("arguments[0].click();",element)
I get the error:
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Can someone help me? I dont know what I'm doing wrong