예제 #1
0
    def add_test_user(self, name, email, server_url):
        """Manually add a test user using the setup page.

    Args:
      name: A string for the name of a test user.
      email: A string for the email of a test user.
      server_url: The base url portion of the setup page.
    """
        # Navigate to add user and go to manual tab.
        self.driver.get(server_url + flask.url_for('setup'))
        add_manually_tab = self.get_element(UfOPageLayout.ADD_MANUALLY_TAB)
        add_manually_tab.click()

        add_user_form = AddUserForm(self.driver)
        add_user_form.add_test_user(name, email)
예제 #2
0
  def add_test_user(self, name, email, server_url):
    """Manually add a test user using the setup page.

    Args:
      name: A string for the name of a test user.
      email: A string for the email of a test user.
      server_url: The base url portion of the setup page.
    """
    # Navigate to add user and go to manual tab.
    self.driver.get(server_url + flask.url_for('setup'))
    add_manually_tab = self.get_element(UfOPageLayout.ADD_MANUALLY_TAB)
    add_manually_tab.click()

    add_user_form = AddUserForm(self.driver)
    add_user_form.add_test_user(name, email)
예제 #3
0
  def add_test_user(self, name, email, server_url):
    """Manually add a test user using the landing page.

    Args:
      name: A string for the name of a test user.
      email: A string for the email of a test user.
      server_url: The base url portion of the landing page.
    """
    self.go_to_landing_page(server_url)

    # Navigate to add user and go to manual tab.
    add_user_button = self.get_element(UfOPageLayout.ADD_USER_BUTTON)
    add_user_button.click()
    WebDriverWait(self.driver, UfOPageLayout.DEFAULT_TIMEOUT).until(
        EC.visibility_of_element_located(((UfOPageLayout.ADD_MANUALLY_TAB))))
    add_manually_tab = self.driver.find_element(*LandingPage.ADD_MANUALLY_TAB)
    add_manually_tab.click()

    add_user_form = AddUserForm(self.driver)
    add_user_form.add_test_user(name, email)
예제 #4
0
    def add_test_user(self, name, email, server_url):
        """Manually add a test user using the landing page.

    Args:
      name: A string for the name of a test user.
      email: A string for the email of a test user.
      server_url: The base url portion of the landing page.
    """
        self.go_to_landing_page(server_url)

        # Navigate to add user and go to manual tab.
        add_user_button = self.get_element(UfOPageLayout.ADD_USER_BUTTON)
        add_user_button.click()
        WebDriverWait(self.driver, UfOPageLayout.DEFAULT_TIMEOUT).until(
            EC.visibility_of_element_located(
                ((UfOPageLayout.ADD_MANUALLY_TAB))))
        add_manually_tab = self.driver.find_element(
            *LandingPage.ADD_MANUALLY_TAB)
        add_manually_tab.click()

        add_user_form = AddUserForm(self.driver)
        add_user_form.add_test_user(name, email)