correctif xpath

This commit is contained in:
Aurélien Plancke 2021-06-18 21:56:42 +02:00
parent 86b0e4f50e
commit 4ead3eb9f3

View File

@ -156,13 +156,10 @@ class PythonOrgSearch(unittest.TestCase):
self.wait.until(EC.url_changes(url)) self.wait.until(EC.url_changes(url))
urlTmp = driver.current_url urlTmp = driver.current_url
driver.find_element_by_xpath("//a[contains(text(),'Jury')]").click() driver.find_element_by_xpath("//a[contains(text(),'Jury')]").click()
driver.find_element_by_link_text("Saisie des décisions du jury") driver.find_element_by_link_text("Saisie des décisions du jury").click()
self.wait.until(EC.url_changes(urlTmp)) self.wait.until(EC.url_changes(urlTmp))
time.sleep(1)
urlTmp = driver.current_url urlTmp = driver.current_url
driver.find_element_by_xpath( driver.find_element_by_partial_link_text("Calcul automatique").click()
"//a[contains(@href,'formsemestre_validation_auto')]"
).click()
self.wait.until(EC.url_changes(urlTmp)) self.wait.until(EC.url_changes(urlTmp))
urlTmp = driver.current_url urlTmp = driver.current_url
driver.find_element_by_xpath("//input[@type='submit']").click() driver.find_element_by_xpath("//input[@type='submit']").click()
@ -176,7 +173,7 @@ class PythonOrgSearch(unittest.TestCase):
searchBar.send_keys("EID10") searchBar.send_keys("EID10")
searchBar.submit() searchBar.submit()
time.sleep(5) time.sleep(5)
self.assertTrue("en cours" in driver.find_element_by_class_name("rcp_dec").text) self.assertTrue("en cours" in driver.page_source)
def test_060_declarer_defaillance(self): def test_060_declarer_defaillance(self):
driver = self.driver driver = self.driver