Guest User

Untitled

a guest
May 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.84 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. from selenium.webdriver.common.by import By
  4. from pages.base import Base
  5.  
  6. class Dashboard(Base):
  7.     '''
  8.    Test Features of the Dashboard
  9.    '''
  10.     _dashboard_dropbutton_locator = (By.XPATH, "//div[contains(@class, 'dropbutton')]")
  11.     _dashboard_subscriptions_locator = (By.CSS_SELECTOR, '.dash #dashboard_subscriptions')
  12.     _dashboard_nofications_locator = (By.ID, 'dashboard_notifications')
  13.    
  14.     @property
  15.     def is_dashboard_dropbutton_present(self):
  16.         return self.is_element_present(*self._dashboard_dropbutton_locator)
  17.    
  18.     @property
  19.     def is_dashboard_subscriptions_present(self):
  20.         return self.is_element_present(*self._dashboard_subscriptions_locator)
  21.    
  22.     @property
  23.     def is_dashboard_notificaitons_present(self):
  24.         return self.is_element_present(*self._dashboard_notifications_locator)
Add Comment
Please, Sign In to add comment