12345678910111213141516 |
- from selenium.webdriver.support import expected_conditions as EC
- from selenium.webdriver.common.by import By
- class page_official():
- button_sign_in_id = "Login_Navibar"
- button_sign_up_id = "Signup_Navibar"
- def __init__(self,driver,wait):
- self.driver = driver
- self.wait = wait
- def wait_sign_in_button(self):
- self.wait.until(EC.element_to_be_clickable((By.ID, self.button_sign_in_id)))
- def click_sign_in_button(self):
- self.driver.find_element_by_id(self.button_sign_in_id).click()
|