예제 #1
0
 def click_next_button(self):
     next_button = HomePageLocators.NEXT_BUTTON
     element_visible(self.browser, *next_button)
     self.browser.find_element(*next_button).click()
예제 #2
0
 def click_geocode_menu_button(self):
     geocode_menu_button = HomePageLocators.GEOCODE_MENU_BUTTON
     element_visible(self.browser, *geocode_menu_button)
     self.browser.find_element(*geocode_menu_button).click()
예제 #3
0
 def fill_in_location(self, value):
     location_input = HomePageLocators.LOCATION_INPUT
     element_visible(self.browser, *location_input)
     self.browser.find_element(*location_input).send_keys(value)
예제 #4
0
 def location_error(self):
     location_error = HomePageLocators.LOCATION_ERROR
     element_visible(self.browser, *location_error)
     return self.browser.find_element(*location_error).text.strip()
예제 #5
0
 def human_proof_first_paragraph(self):
     first_paragraph = SignUpPageLocators.HUMAN_PROOF_FIRST_PARAGRAPH
     element_visible(self.browser, *first_paragraph)
     return self.browser.find_element(*first_paragraph).text.strip()
예제 #6
0
 def click_create_account_button(self):
     create_account_button = SignUpPageLocators.CREATE_ACCOUNT_BUTTON
     element_visible(self.browser, *create_account_button)
     self.browser.find_element(*create_account_button).click()
예제 #7
0
 def fill_in_password_second_input(self, value):
     password_second_input = SignUpPageLocators.PASSWORD_SECOND_INPUT
     element_visible(self.browser, *password_second_input)
     self.browser.find_element(*password_second_input).send_keys(value)
예제 #8
0
 def fill_in_email_second_input(self, value):
     email_second_input = SignUpPageLocators.EMAIL_SECOND_INPUT
     element_visible(self.browser, *email_second_input)
     self.browser.find_element(*email_second_input).send_keys(value)