Skip to content

Instantly share code, notes, and snippets.

@gabriellopesdesouza2002
Last active February 21, 2022 19:27
Show Gist options
  • Save gabriellopesdesouza2002/ae544fe77d0f5ed97d137b9675dc5daf to your computer and use it in GitHub Desktop.
Save gabriellopesdesouza2002/ae544fe77d0f5ed97d137b9675dc5daf to your computer and use it in GitHub Desktop.
from time import sleep
from selenium.webdriver import Chrome
chrome = Chrome()
chrome.get('https://selenium.dunossauro.live/aula_05.html')
sleep(1)
# names= nome, email, senha, telefone, btn
# envia nome
chrome.find_element_by_xpath('//*[@id="nome"]').send_keys('Gabriel')
sleep(.5)
# Envia email
chrome.find_element_by_xpath('//*[@id="email"]').send_keys('gloryland@gmail.com')
sleep(.5)
# envia senha
chrome.find_element_by_xpath('//*[@id="senha"]').send_keys('itstrue')
sleep(.5)
# envia telefone
chrome.find_element_by_xpath('//*[@id="telefone"]').send_keys('(10)987654321')
sleep(.5)
# clica no enviar
chrome.find_element_by_xpath('//*[@name="btn"]').click()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment