I try to make some automations using Python+selenium (new to this). Unfortunatelly, inspecting elements of a specific webpage is more than hard. There is no id to use and I try xpath. I want to select a drop down list , i inspect this element and I copy the xpath which is //*[@id="frmMain:criteria:purchase_criteria_tab"]/div[13]/div[1]/div/button
my code is:
NEXT_BUTTON_XPATH = "//*[@id='frmMain:criteria:purchase_criteria_tab']/div[13]/div[1]/div/button"
wait = WebDriverWait(driver, 10)
condition = expected_conditions.presence_of_element_located(
(By.XPATH, NEXT_BUTTON_XPATH))
button = wait.until(condition)
button.click()
and I cannot get the element Any ideas? Thank you in advance.