jeudi 28 mai 2020

Select Checkbox Selenium Python

I really need help to solve this.

I'm trying create a Checkout script, and for this I need to select "Accept the Exchange and Cancellation Policy"

Here is the image:enter image description here

And my code:

def abrir_termos(driver):
    sleep(4)
    LOGGER.info("Abrindo e acitando termos")
    driver.getElement(By.id("politica-trocas")).click()



Aucun commentaire:

Enregistrer un commentaire