def selectGender(self, gender):
     if gender == "Mrs":
         Do.click(self.rbt_genderMale)
         return self
     else:
         Do().click(self.rbt_genderFemale)
         return self
 def enterInField_fld_address(self, address):
     Do().sendKeys(self.fld_address, address)
     Wait().ForElementPresent(self.fld_city)
     return self
Esempio n. 3
0
 def use_chb_uniform(self):
     Do().click(self.chb_uniform)
Esempio n. 4
0
 def enterInfield_fld_emailAddress(self, email):
     Do().sendKeys(self.fld_emailAddress, email)
     return self
Esempio n. 5
0
 def loseFocus(self):
     element = By.ID, 'email'
     Do().click(element)
     return self
 def logout(self):
     Do().click(self.btn_logout)
     return self
 def enterInField_fld_alias(self, alias):
     Do().sendKeys(self.fld_alias, alias)
     Wait().ForElementPresent(self.fld_postcode)
     return self
 def select_ddl_state(self, state):
     Do().selectDropDownOptoin(self.ddl_state, state)
     return self
Esempio n. 9
0
 def standard_chekcout(self):
     Do().click(self.btn_standard_checkout)
     return self
Esempio n. 10
0
 def proceed_to_checkout(self):
     Wait().ForElementDisplayed(self.popup_layer_cart)
     Do().click(self.btn_proceed_to_checkout)
     Wait().ForElementDisplayed(self.btn_standard_checkout)
     return self
Esempio n. 11
0
 def add_to_cart(self):
     Do().click(self.btn_add_to_cart)
     return self
Esempio n. 12
0
 def select_product(self):
     Wait().ForElementDisplayed(self.icon_large)
     Do().scrollToElement(self.product_img_link)
     Do().click(self.product_img_link)
     Wait().ForElementPresent(self.icon_twitter)
     return self
Esempio n. 13
0
 def select_lnk_casualDresses(self):
     Do().click(self.lnk_casualDresses)
     return self
Esempio n. 14
0
 def select_tab_dressesTab(self):
     Do().click(self.tab_dressesTab)
     return self
 def enterInField_fld_city(self, city):
     Do().sendKeys(self.fld_city, city)
     Wait().ForElementPresent(self.fld_postcode)
     return self
 def enterInField_fld_phone_mobile(self, phone_mobile):
     Do().sendKeys(self.fld_phone_mobile, phone_mobile)
     Wait().ForElementPresent(self.fld_postcode)
     return self
Esempio n. 17
0
 def use_btn_process_address(self):
     Do().click(self.btn_processAddress)
     return self
 def select_ddl_country(self, country):
     Do().selectDropDownOptoin(self.ddl_country, country)
     return self
 def enterInField_fld_customer_firstname(self, firstName):
     Do().sendKeys(self.fld_customerFirstname, firstName)
     Wait().ForElementPresent(self.fld_customerLastname)
     return self
 def use_btn_submitAccount(self):
     Do().click(self.btn_submitAccount)
     Wait().ForElementNotDisplayed(self.fld_alias)
     return self
 def enterInField_fld_customer_lastname(self, lastName):
     Do().sendKeys(self.fld_customerLastname, lastName)
     Wait().ForElementPresent(self.fld_password)
     return self
Esempio n. 22
0
 def select_lnk_signIn(self):
     Do().click(self.lnk_signIn)
     return self
 def enterInField_fld_password(self, password):
     Do().sendKeys(self.fld_password, password)
     Wait().ForElementPresent(self.fld_firstname)
     return self
Esempio n. 24
0
 def use_btn_submitCreate(self):
     Do().click(self.btn_submitCreate)
     Wait().ForElementDisplayed(self.fld_customerFirstname)
     return self
 def enter_birthday_date(self, day, month, year):
     Do().selectDropDownOptoin(self.ddl_days, day)
     Do().selectDropDownOptoin(self.ddl_months, month)
     Do().selectDropDownOptoin(self.ddl_years, year)
     return self
 def enter_in_field(self, elementLocator):
     Do().sendKeys(elementLocator)
     return self
Esempio n. 27
0
 def use_btn_close_error_box(self):
     Do().click(self.btn_close_error_box)
     return self