mangroveorg/datawinners

View on GitHub
func_tests/pages/loginpage/login_locator.py

Summary

Maintainability
A
2 hrs
Test Coverage
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8

from framework.utils.common_utils import *


# By default every locator should be CSS
# Abbr:
# TB - Text Box
# CB - Check Box
# RB - Radio Button
# BTN - Button
# DD - Drop Down
# LINK - Links
# LABEL - Label


# variable to access locators
LOCATOR = "locator"
BY = "by"

# List of all the locators related to login page
EMAIL_TB = by_css("input[name=username]")
PASSWORD_TB = by_css("input[name=password]")
LOGIN_BTN = by_css("input#id_login")
CREATE_AN_ACCOUNT_LINK = by_css("a[href='/register']")

ERROR_MESSAGE_LABEL =  by_xpath("//ul[@class='errorlist']/..|//div[@class='warning-message-box clear-both overflow_hidden']/p")