fix test selenium

This commit is contained in:
Cayo Puigdefabregas 2023-04-20 18:07:12 +02:00
parent f9ed33d46d
commit 8f5835fa4f
1 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class TestSelenium:
# login # login
self.driver.find_element(By.ID, "yourEmail").click() self.driver.find_element(By.ID, "yourEmail").click()
self.driver.implicitly_wait(3) self.driver.implicitly_wait(3)
self.driver.find_element(By.ID, "yourPassword").send_keys("1234") self.driver.find_element(By.ID, "id_password").send_keys("1234")
self.driver.find_element(By.ID, "yourEmail").send_keys("user@dhub.com") self.driver.find_element(By.ID, "yourEmail").send_keys("user@dhub.com")
self.driver.find_element(By.CSS_SELECTOR, ".btn").click() self.driver.find_element(By.CSS_SELECTOR, ".btn").click()
self.driver.implicitly_wait(3) self.driver.implicitly_wait(3)
@ -104,7 +104,9 @@ class TestSelenium:
# logout # logout
# self.driver.find_element(By.CSS_SELECTOR, ".d-md-block:nth-child(2)").click() # self.driver.find_element(By.CSS_SELECTOR, ".d-md-block:nth-child(2)").click()
self.driver.find_element(By.CSS_SELECTOR, ".d-md-block:nth-child(2)").click() self.driver.find_element(By.CSS_SELECTOR, ".d-md-block:nth-child(2)").click()
self.driver.find_element(By.CSS_SELECTOR, "li:nth-child(9) > .dropdown-item > span").click() self.driver.find_element(
By.CSS_SELECTOR, "li:nth-child(9) > .dropdown-item > span"
).click()
# self.driver.find_element(By.CSS_SELECTOR, ".d-md-block").click() # self.driver.find_element(By.CSS_SELECTOR, ".d-md-block").click()
# self.driver.implicitly_wait(3) # self.driver.implicitly_wait(3)
# self.driver.find_element(By.LINK_TEXT, "Sign Out").click() # self.driver.find_element(By.LINK_TEXT, "Sign Out").click()