From 7782a9ed1dba5c391aa923fbb0097163bba2c8f4 Mon Sep 17 00:00:00 2001 From: Kejebo Date: Wed, 6 Dec 2023 17:58:00 -0600 Subject: [PATCH] add some comment about selenium functions --- src/academic/tests/selenium.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/academic/tests/selenium.py b/src/academic/tests/selenium.py index 502268e5..bddc4670 100644 --- a/src/academic/tests/selenium.py +++ b/src/academic/tests/selenium.py @@ -115,9 +115,12 @@ def test_move_views(self): self.screenShots("step2","procedures","add") elem = self.selenium.find_element(By.ID,"id_title") elem.send_keys("Se limpiaran laboratorios") + #Search element into iframe. self.selenium.switch_to.frame(self.selenium.find_element(By.XPATH, "//iframe[@id='id_description_ifr']")) self.selenium.find_element(By.TAG_NAME,'body').send_keys("

Se limpiaran laboratorios

") self.screenShots("step3","procedures","add") + + #Changes to original Html . self.selenium.switch_to.default_content() form = self.selenium.find_element(By.XPATH, "//form[1]") form.submit() @@ -156,8 +159,9 @@ def test_procedure_init(self): self.screenShots("view_laboratory",url=url, time_out=5) sidebar = self.selenium.find_element(By.XPATH,"//a//i[@class='fa fa-calendar-check-o']") - sidebar.click() + + #Use to move hover effect action = ActionChains(self.selenium) action.move_to_element(sidebar).perform() select_option = self.selenium.find_element(By.XPATH,"//a//i[@class='fa fa-list-alt']")