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