def set_date(self, date): """ Sets the updates date input to the provided value. Arguments: date (str): Date string in the format DD/MM/YYYY """ set_input_value(self, 'input.date', date)
def sign_up_user(self, registration_dictionary): """ Register the user. """ for css, value in registration_dictionary.iteritems(): set_input_value(self, css, value) click_css(page=self, css='#tos', require_notification=False) click_css(page=self, css='#submit', require_notification=False) self.wait_for_element_absence('#submit', 'Submit button is gone.')
def enter_name(self, new_name): """ Enters new_name as the item's display name. """ set_input_value(self, self._bounded_selector(self.NAME_INPUT_SELECTOR), new_name)
def input_password(self, password): """Inputs a password and then returns the password input""" return set_input_value(self, "#register-password", password)
def input_password(self, password): """Inputs a password and then returns the password input""" return set_input_value(self, '#password', password)
def course_run(self, value): """ Sets the value of the course run field. """ set_input_value(self, self.COURSE_RUN_INPUT, value)