Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HomeScreen:
- def __init__(self, driver):
- .
- .
- .
- self.title = WebDriverWait(self.driver.instance, 10).until(
- EC.visibility_of_element_located((
- By.CLASS_NAME, "site-title")))
- self.icon = WebDriverWait(self.driver.instance, 10).until(
- EC.visibility_of_element_located((
- By.CLASS_NAME, "custom-logo")))
- .
- .
- .
- def validate_title_is_present(self):
- assert self.title.is_displayed()
- def validate_icon_is_present(self):
- assert self.icon.is_displayed()
Add Comment
Please, Sign In to add comment