daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest May 16th, 2018 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class HomeScreen:
  2.  
  3.     def __init__(self, driver):
  4.       .
  5.       .
  6.       .
  7.         self.title = WebDriverWait(self.driver.instance, 10).until(
  8.             EC.visibility_of_element_located((
  9.                 By.CLASS_NAME, "site-title")))
  10.         self.icon = WebDriverWait(self.driver.instance, 10).until(
  11.             EC.visibility_of_element_located((
  12.                 By.CLASS_NAME, "custom-logo")))
  13.         .
  14.         .
  15.         .
  16.  
  17.     def validate_title_is_present(self):
  18.         assert self.title.is_displayed()
  19.  
  20.     def validate_icon_is_present(self):
  21.         assert self.icon.is_displayed()
RAW Paste Data
Top