From 5cda25ad045e0231b1362b350b63e23b8bd5dae3 Mon Sep 17 00:00:00 2001 From: aurelien Date: Tue, 8 Jun 2021 16:00:31 +0200 Subject: [PATCH] typo fix --- 06_test_moyenne.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/06_test_moyenne.py b/06_test_moyenne.py index 51a1f5f..8cffadc 100644 --- a/06_test_moyenne.py +++ b/06_test_moyenne.py @@ -117,13 +117,11 @@ class PythonOrgSearch(unittest.TestCase): def test_020_ajout_note_seconde_ue(self): global listeEtudiant global MOY_UE2 - glboal URL_SEMESTRE + global URL_SEMESTRE + linkAddNote = "formnotes_note_" driver = self.driver url = self.url - driver.get(url) - linkAddNote = "formnotes_note_" - driver.find_element_by_link_text("semestre 1").click() - URL_SEMESTRE = driver.current_url + driver.get(URL_SEMESTRE) ue_name = driver.find_elements_by_class_name("status_ue_acro")[1].text driver.find_element_by_link_text("M1201").click() self.wait.until(EC.url_changes(URL_SEMESTRE)) @@ -178,7 +176,7 @@ class PythonOrgSearch(unittest.TestCase): driver.get(url) driver.find_element_by_id("ProgrammesLink").click() driver.find_element_by_id("titre_DUT Info").click() - driver.find_element_by_xpath("//span[contains(text(),'M1101'").click() + driver.find_element_by_xpath("//span[contains(text(),'M1101')]").click() driver.find_element_by_id("tf_coefficient").clear() driver.find_element_by_id("tf_coefficient").send_keys("3") driver.find_element_by_id("tf_submit").click()