Example #1
0
    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)
Example #2
0
    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)
Example #3
0
    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.')
Example #4
0
 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)
Example #5
0
 def input_password(self, password):
     """Inputs a password and then returns the password input"""
     return set_input_value(self, "#register-password", password)
Example #6
0
 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)
Example #7
0
 def input_password(self, password):
     """Inputs a password and then returns the password input"""
     return set_input_value(self, '#password', password)
Example #8
0
 def course_run(self, value):
     """
     Sets the value of the course run field.
     """
     set_input_value(self, self.COURSE_RUN_INPUT, value)
Example #9
0
 def input_password(self, password):
     """Inputs a password and then returns the password input"""
     return set_input_value(self, "#register-password", password)