page_official.py 535 B

12345678910111213141516
  1. from selenium.webdriver.support import expected_conditions as EC
  2. from selenium.webdriver.common.by import By
  3. class page_official():
  4. button_sign_in_id = "Login_Navibar"
  5. button_sign_up_id = "Signup_Navibar"
  6. def __init__(self,driver,wait):
  7. self.driver = driver
  8. self.wait = wait
  9. def wait_sign_in_button(self):
  10. self.wait.until(EC.element_to_be_clickable((By.ID, self.button_sign_in_id)))
  11. def click_sign_in_button(self):
  12. self.driver.find_element_by_id(self.button_sign_in_id).click()