Skip to content

Commit

Permalink
add some comment about selenium functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kejebo committed Dec 6, 2023
1 parent a3c0073 commit 7782a9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/academic/tests/selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<p><strong>Se limpiaran laboratorios</strong></p>")
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()
Expand Down Expand Up @@ -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']")
Expand Down

0 comments on commit 7782a9e

Please sign in to comment.