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