Closed Arthurito37 closed 1 month ago
Link do arquivo Missão5-Projeto QA ADS-5: https://drive.google.com/file/d/1F89s5Jb078-rMqsAvBcaplxJbU--jvEU/view?usp=sharing Segue o código abaixo.
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys import time
driver = webdriver.Chrome()
driver.get("https://mentorweb.unifecaf.edu.br/fecafMentorWebG5/")
username = driver.find_element(By.NAME, "j_username") username.send_keys("Usuário")
password = driver.find_element(By.NAME, "senha") password.send_keys("Senha")
login_button = driver.find_element(By.NAME, "btnLogin") login_button.click()
time.sleep(5)
if "dashboard" in driver.current_url: print("Login realizado com sucesso!") else: print("Falha no login.")
driver.quit()
Estudantes: Arthur de Sousa Santana RA: 43126 Cindy Alves de Andrade Morais RA: 45795
Link do arquivo Missão5-Projeto QA ADS-5: https://drive.google.com/file/d/1F89s5Jb078-rMqsAvBcaplxJbU--jvEU/view?usp=sharing Segue o código abaixo.
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys import time
driver = webdriver.Chrome()
driver.get("https://mentorweb.unifecaf.edu.br/fecafMentorWebG5/")
username = driver.find_element(By.NAME, "j_username") username.send_keys("Usuário")
password = driver.find_element(By.NAME, "senha") password.send_keys("Senha")
login_button = driver.find_element(By.NAME, "btnLogin") login_button.click()
time.sleep(5)
if "dashboard" in driver.current_url: print("Login realizado com sucesso!") else: print("Falha no login.")
driver.quit()
Estudantes: Arthur de Sousa Santana RA: 43126 Cindy Alves de Andrade Morais RA: 45795