Untitled

mail@pastecode.io avatar
unknown
plain_text
8 days ago
604 B
7
Indexable
Never
from iniciar_driver import iniciar_driver
from selenium.webdriver.common.by import By
import time
import datetime as dt


driver=iniciar_driver()
driver.get('https:cursoautomacao.netlify.app')
time.sleep(1)
link_desafios = driver.find_element(By.LINK_TEXT, 'Desafios')
link_desafios.click()
time.sleep(1)
campo_nome = driver.find_element(By.ID, 'dadosusuario')
campo_nome.send_keys('Fernando Almeida')
time.sleep(1)
driver.execute_script("window.scrollBy(0, 400);")
time.sleep(1)
botao_click_aqui = driver.find_element(By.ID, 'desafio2').click()
# botao_click_aqui.click()
input(" ")
Leave a Comment