0
    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>

  • Does this answer your question? [ElementNotInteractableException: Message: element not interactable error sending text in search field using Selenium Python](https://stackoverflow.com/questions/62823489/elementnotinteractableexception-message-element-not-interactable-error-sending) – Prophet Sep 18 '22 at 18:36

1 Answers1

0

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

Tal Angel
  • 1,301
  • 3
  • 29
  • 63
  • buttonfinal = driver.find_element( By.XPATH, "//button[@type='submit' and contains(., 'Registrati')]").click() finally i have find a solution with this. – Eddie Hartard Arata Sep 21 '22 at 14:22