ElementNotInteractableException python selenium

Viewed 22
    buttonfinal = driver.find_element(
        By.CSS_SELECTOR,
        "button[class = '_2SQ6OPS1CO _3iCncfMaN4'").click()

I tried multiple solutions to click the button but still can't find the solution.

HTML CODE


    <button type="submit" class="_2SQ6OPS1CO _3iCncfMaN4"><div class="">Registrati</div></button>

1 Answers

If you only have a single submit button, do this:

button_final = driver.find_element(By.CSS, 'button[type="submit"]')
button_final.click()

If you have multiple buttons with the same class, try this:

button_final = driver.find_element(By.Xpath, 'button[contains(text(), "Registratin")]')
button_final.click()

Tell me if this worked for you or not

Related