forked from gunesmes/page-object-python-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocators.py
More file actions
17 lines (14 loc) · 661 Bytes
/
Copy pathlocators.py
File metadata and controls
17 lines (14 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from selenium.webdriver.common.by import By
# for maintainability we can seperate web objects by page name
class MainPageLocatars(object):
LOGO = (By.ID, 'nav-logo')
ACCOUNT = (By.ID, 'nav-link-yourAccount')
SIGNUP = (By.CSS_SELECTOR, '#nav-flyout-ya-newCust > a')
LOGIN = (By.CSS_SELECTOR, '#nav-flyout-ya-signin > a')
SEARCH = (By.ID, 'twotabsearchtextbox')
SEARCH_LIST = (By.ID, 's-results-list-atf')
class LoginPageLocatars(object):
EMAIL = (By.ID, 'ap_email')
PASSWORD = (By.ID, 'ap_password')
SUBMIT = (By.ID, 'signInSubmit-input')
ERROR_MESSAGE = (By.ID, 'message_error')