def enter_field(self, value, locator):
form_field = self.find_element(locator)
form_field.send_keys(value)
form_field.send_keys(Keys.RETURN)
return form_field
def enter_id(self, value):
form_id = self.find_element(TypesOffersPageLocators.FORM_ID)
form_id.send_keys(value)
form_id.send_keys(Keys.RETURN)
return form_id
def enter_name(self, value):
form_name = self.find_element(TypesOffersPageLocators.FORM_NAME)
form_name.send_keys(value)
form_name.send_keys(Keys.RETURN)
return form_name
def enter_comment(self, value):
form_comment = self.find_element(TypesOffersPageLocators.FORM_COMMENT)
form_comment.send_keys(value)
form_comment.send_keys(Keys.RETURN)
return form_comment