Ejemplo n.º 1
0
 def get_client_title_mrs(self):
     locator = Locator(by=By.ID, value='uniform-id_gender2')
     return BaseElement(self.driver, locator=locator)
 def btn_submit(self):
     locator = Locator(By.CLASS_NAME, value='button btn btn-default')
     return BaseElement(self.driver, locator=locator)
 def page_heading(self):
     locator = Locator(By.XPATH, value='//*[@id="carrier_area"]/h1')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 4
0
 def btn_trash(self):
     locator = Locator(by=By.CLASS_NAME, value='icon-trash')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 5
0
 def final_price_products(self):
     locator = Locator(by=By.CSS_SELECTOR,
                       value='.price[@id="total_price"]')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 6
0
 def page_heading(self):
     locator = Locator(By.CSS_SELECTOR, value='#center_column > h1')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 7
0
 def input_qty(self):
     locator = Locator(by=By.XPATH,
                       value="//*[@id='product_1_1_0_0']/td[5]/input[2]")
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 8
0
 def get_firstName_field(self):
     locator = Locator(by=By.ID, value='firstname')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 9
0
 def get_last_name_field(self):
     locator = Locator(by=By.ID, value='email')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 10
0
 def dropdown_birth_month(self):
     locator = Locator(By.ID, value='months')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 11
0
 def dropdown_birth_year(self):
     locator = Locator(By.ID, value='years')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 12
0
 def get_client_passwd(self):
     locator = Locator(by=By.ID, value='passwd')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 13
0
 def get_client_email(self):
     locator = Locator(by=By.ID, value='email')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 14
0
 def get_client_lastName(self):
     locator = Locator(by=By.ID, value='customer_lastname')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 15
0
 def btn_add_new_address(self):
     locator = Locator(By.CLASS_NAME, value='address_add submit')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 16
0
 def get_address_second_field(self):
     locator = Locator(by=By.ID, value='address2')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 17
0
 def input_text_area(self):
     locator = Locator(By.CLASS_NAME, value='form-group')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 18
0
 def get_city_field(self):
     locator = Locator(by=By.ID, value='city')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 19
0
 def btn_proceed_to_checkout(self):
     locator = Locator(by=By.XPATH,
                       value='//*[@id=\"center_column\"]/p[2]/a[1]/span')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 20
0
 def dropdown_state_field(self):
     locator = Locator(by=By.ID, value='id_state')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 21
0
 def btn_remove_qty(self):
     locator = Locator(by=By.CLASS_NAME, value='icon-minus')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 22
0
 def get_postalcode_field(self):
     locator = Locator(by=By.ID, value='postcode')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 23
0
 def empty_cart_alert(self):
     locator = Locator(by=By.CSS_SELECTOR, value='#center_column > p')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 24
0
 def dropdown_delivery_address(self):
     locator = Locator(By.ID, value='id_address_delivery')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 25
0
 def checkbox_terms(self):
     locator = Locator(By.ID, value='uniform-cgv')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 26
0
 def checkbox_billing_address(self):
     locator = Locator(By.ID, value='addressesAreEquals')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 27
0
 def btn_continue_shopping(self):
     locator = Locator(By.CLASS_NAME,
                       value='button-exclusive btn btn-default')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 28
0
 def btn_billing_address_update(self):
     locator = Locator(By.CSS_SELECTOR,
                       value='div.row > div:nth-of-type(2)')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 29
0
 def uncheked_terms(self):
     locator = Locator(By.CLASS_NAME, value='fancybox-error')
     return BaseElement(self.driver, locator=locator)
Ejemplo n.º 30
0
 def postalcode_is_required(self):
     locator = Locator(by=By.XPATH,
                       value='//*[@id="center_column"]/div/ol/li')
     return BaseElement(self.driver, locator=locator)