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))
def company(self): return find(CheckoutPage.shipping_company_lo)
def username_field(self): return find(self.username_field_lo)
def __init__(self, n): self.item = find(SearchPage.item_lo % n)
def place_order_button(self): return find(CheckoutPage.place_order_button_lo)
def cc_year(self): return find(CheckoutPage.cc_year_lo)
def cc_number(self): return find(CheckoutPage.cc_number_lo)
def country(self): return find(CheckoutPage.billing_country_lo)
def next_button(self): return find(CheckoutPage.next_button_lo)
def phone_3(self): return find(CheckoutPage.shipping_phone_3_lo)
def country(self): return find(CheckoutPage.shipping_country_lo)
def state(self): return find(CheckoutPage.shipping_state_lo)
def city(self): return find(CheckoutPage.shipping_city_lo)
def zip(self): return find(CheckoutPage.shipping_zip_lo)
def address_2(self): return find(CheckoutPage.shipping_address_2_lo)
def city(self): return find(CheckoutPage.billing_city_lo)
def state(self): return find(CheckoutPage.billing_state_lo)
def shipping_ship_here_button(self, n=1): return find(CheckoutPage.shipping_ship_here_button_lo % n)
def phone_3(self): return find(CheckoutPage.billing_phone_3_lo)
def credit_cart_method(self): return find(CheckoutPage.credit_cart_method_lo)
def cc_month(self): return find(CheckoutPage.cc_month_lo)
def billing_equal_shipping_checkbox(self): return find(CheckoutPage.billing_equal_shipping_checkbox_lo)
def cc_cvv(self): return find(CheckoutPage.cc_cvv_lo)
def last_name(self): return find(CheckoutPage.billing_last_name_lo)
def error_message(self): return find(self.error_message_lo)
def company(self): return find(CheckoutPage.billing_company_lo)
def __init__(self, n): self.item = find(CategoryPage.item_lo % n)
def address_2(self): return find(CheckoutPage.billing_address_2_lo)
def password_field(self): return find(self.password_field_lo)
def zip(self): return find(CheckoutPage.billing_zip_lo)