Exemple #1
0
    def login(self):
        self.login_icon.click()

        login_email = find('//input[@id="login-email"]')
        login_password = find('//input[@id="login-password"]')

        login_email.clear()
        login_email.send_keys(user + Keys.TAB)
        login_password.clear()
        login_password.send_keys(password + Keys.RETURN)

        WebDriverWait(driver, 10).until(EC.staleness_of(self.login_icon))
Exemple #2
0
 def company(self):
     return find(CheckoutPage.shipping_company_lo)
Exemple #3
0
 def username_field(self):
     return find(self.username_field_lo)
 def __init__(self, n):
     self.item = find(SearchPage.item_lo % n)
Exemple #5
0
 def place_order_button(self):
     return find(CheckoutPage.place_order_button_lo)
Exemple #6
0
 def cc_year(self):
     return find(CheckoutPage.cc_year_lo)
Exemple #7
0
 def cc_number(self):
     return find(CheckoutPage.cc_number_lo)
Exemple #8
0
 def country(self):
     return find(CheckoutPage.billing_country_lo)
Exemple #9
0
 def next_button(self):
     return find(CheckoutPage.next_button_lo)
Exemple #10
0
 def phone_3(self):
     return find(CheckoutPage.shipping_phone_3_lo)
Exemple #11
0
 def country(self):
     return find(CheckoutPage.shipping_country_lo)
Exemple #12
0
 def state(self):
     return find(CheckoutPage.shipping_state_lo)
Exemple #13
0
 def city(self):
     return find(CheckoutPage.shipping_city_lo)
Exemple #14
0
 def zip(self):
     return find(CheckoutPage.shipping_zip_lo)
Exemple #15
0
 def address_2(self):
     return find(CheckoutPage.shipping_address_2_lo)
Exemple #16
0
 def city(self):
     return find(CheckoutPage.billing_city_lo)
Exemple #17
0
 def state(self):
     return find(CheckoutPage.billing_state_lo)
Exemple #18
0
 def shipping_ship_here_button(self, n=1):
     return find(CheckoutPage.shipping_ship_here_button_lo % n)
Exemple #19
0
 def phone_3(self):
     return find(CheckoutPage.billing_phone_3_lo)
Exemple #20
0
 def credit_cart_method(self):
     return find(CheckoutPage.credit_cart_method_lo)
Exemple #21
0
 def cc_month(self):
     return find(CheckoutPage.cc_month_lo)
Exemple #22
0
 def billing_equal_shipping_checkbox(self):
     return find(CheckoutPage.billing_equal_shipping_checkbox_lo)
Exemple #23
0
 def cc_cvv(self):
     return find(CheckoutPage.cc_cvv_lo)
Exemple #24
0
 def last_name(self):
     return find(CheckoutPage.billing_last_name_lo)
Exemple #25
0
 def error_message(self):
     return find(self.error_message_lo)
Exemple #26
0
 def company(self):
     return find(CheckoutPage.billing_company_lo)
Exemple #27
0
 def __init__(self, n):
     self.item = find(CategoryPage.item_lo % n)
Exemple #28
0
 def address_2(self):
     return find(CheckoutPage.billing_address_2_lo)
Exemple #29
0
 def password_field(self):
     return find(self.password_field_lo)
Exemple #30
0
 def zip(self):
     return find(CheckoutPage.billing_zip_lo)