
# Login Page Elements
BROWSER = 'firefox'
URL = 'http://automationpractice.com/index.php?'
LINK_SIGN_IN = 'xpath:/html/body/div/div[1]/header/div[2]/div/div/nav/div[1]/a'
TEXTBOX_USERNAME = 'xpath://*[@id="email"]'
TEXTBOX_PASSWORD = 'xpath://*[@id="passwd"]'
LOGIN_BUTTON = "xpath:/html/body/div/div[2]/div/div[3]/div/div/div[2]/form/div/p[2]/button/span"
MY_ACCOUNT = 'My account'

# Forgotten password
CLICK_FORGOT_LINK = 'xpath:/html/body/div/div[2]/div/div[3]/div/div/div[2]/form/div/p[1]/a'
ENTER_EMAIL = 'id:email'
FORGOT_PASSWORD_BUTTON = 'xpath:/html/body/div/div[2]/div/div[3]/div/div/form/fieldset/p/button/span'
CONFIRMATION_MESSAGE = 'A confirmation email has been sent to your address: '

# Contact us Page Elements
CONTACT_US_LINK = 'xpath:/html/body/div/div[1]/header/div[2]/div/div/nav/div[2]/a'
SELECT_HEADING = 'xpath://*[@id="id_contact"]'
TEXT_EMAIL_ADDRESS = 'xpath://*[@id="email"]'
ORDER_REFERENCE = 'xpath://*[@id="message"]'
ENTER_MESSAGE = 'xpath://*[@id="message"]'
CLICK_BUTTON = 'xpath:/html/body/div/div[2]/div/div[3]/div/form/fieldset/div[2]/button/span'
click_button_to_return = 'xpath:/html/body/div/div[2]/div/div[3]/div/form/fieldset/div[2]/button/span'

# Searching and selecting product
CLICK_SEARCH = 'xpath://input[@name="search_query"]'
ENTER_SEARCHED_ITEM = 'xpath://input[@name="search_query"] '
PRESS_SEARCH_BUTTON = 'xpath://button[@name="submit_search"]'
SELECT_FROM_LIST = 'xpath://*[@id="selectProductSort"]'
CLICK_ON_IMAGE = 'xpath:/html/body/div/div[2]/div/div[3]/div[2]/ul/li[1]/div/div[1]/div/a[1]/img'
click_image = 'xpath:/html/body/div/div[2]/div/div[4]/div/div/div/div[4]/form/div/div[2]/p[1]/a[2]/span/i'
click_plus_sign = 'xpath:/html/body/div/div[2]/div/div[4]/div/div/div/div[4]/form/div/div[2]/p[1]/a[2]/span/i'
select_size = 'xpath://*[@id="group_1"] '
click_colour = 'xpath://*[@id="color_14"]'
add_to_cart = 'xpath:/html/body/div/div[2]/div/div[4]/div/div/div/div[4]/form/div/div[3]/div/p/button'
proceed_to_checkout = 'xpath:/html/body/div/div[1]/header/div[3]/div/div/div[4]/div[1]/div[2]/div[4]/a/span'
proceed = 'xpath:/html/body/div/div[2]/div/div[3]/div/p[2]/a[1]/span'

# variables for data driven test
login_button = 'xpath:/html/body/div/div[2]/div/div[3]/div/div/div[2]/form/div/p[2]/button/span'
email_address = 'xpath://*[@id="email"]'
enter_password = 'xpath://*[@id="passwd"]'

# create an account page
sign_in = 'xpath:/html/body/div/div[1]/header/div[2]/div/div/nav/div[1]/a'
type_email = 'name:email_create'
create_account_button = 'xpath:/html/body/div/div[2]/div/div[3]/div/div/div[1]/form/div/div[3]/button/span'
Create_an_account = 'Create an account'
enter_firstName = 'xpath://*[@id="customer_firstname"]'
enter_lastName = 'xpath://*[@id="customer_lastname"]'
sign_up_checkbox = 'xpath://*[@id="newsletter"]'
address_name = ' xpath://*[@id="firstname"]'
address_name2 = 'xpath://*[@id="lastname"]'
address = 'xpath://*[@id="address1"]'
city = 'id:city '
select_state = 'xpath://*[@id="id_state"]'
enter_postalCode = 'xpath://*[@id="postcode"]'
phone_number = 'xpath://*[@id="phone_mobile"]'
alias = 'xpath://*[@id="alias"]'
save_button = 'xpath:/html/body/div/div[2]/div/div[3]/div/div/form/div[4]/button/span'


# Variables

# variables for contact us page
enter_text = 'sonak190uk@yahoo.com'


# selecting desired t-shirt
T_SHIRTS = 'xpath://*[@id="block_top_menu"]/ul/li[3]/a'


