def select_role_for_user(self, user_id, role):
        """ Select role for user, return true if visible, else return false """

        user_role_select = self.find_element(*Locators.USER_SELECT(user_id))
        selenium_select = Select(user_role_select)
        selenium_select.select_by_visible_text(role)
Exemple #2
0
 def select_term(self, term):
     WebDriverWait(self._driver, 30).until(
         EC.visibility_of_element_located(Locators.TERM_SELECT_DROPDOWN))
     select = Select(self.find_element(*Locators.TERM_SELECT_DROPDOWN))
     select.select_by_visible_text(term)
 def select_template(self, template):
     select = Select(self.find_element(*Locators.TEMPLATE_SELECT_DROPDOWN))
     select.select_by_value(template)
Exemple #4
0
 def select_course_group(self, course_group):
     select = Select(self.find_element(*Locators.COURSE_GROUP_DROPDOWN))
     select.select_by_visible_text(course_group)
Exemple #5
0
 def select_department(self, department):
     select = Select(self.find_element(*Locators.DEPARTMENT_DROPDOWN))
     select.select_by_visible_text(department)
Exemple #6
0
 def select_template(self, template):
     select = Select(self.find_element(*Locators.TEMPLATE_SELECT_DROPDOWN))
     select.select_by_value(template)
    def select_role_for_user(self, user_id, role):
        """ Select role for user, return true if visible, else return false """

        user_role_select = self.find_element(*Locators.USER_SELECT(user_id))
        selenium_select = Select(user_role_select)
        selenium_select.select_by_visible_text(role)
 def select_term(self, term):
     WebDriverWait(self._driver, 30).until(EC.visibility_of_element_located(
             Locators.TERM_SELECT_DROPDOWN))
     select = Select(self.find_element(*Locators.TERM_SELECT_DROPDOWN))
     select.select_by_visible_text(term)
 def select_department(self, department):
     select = Select(self.find_element(*Locators.DEPARTMENT_DROPDOWN))
     select.select_by_visible_text(department)
 def select_course_group(self, course_group):
     select = Select(self.find_element(*Locators.COURSE_GROUP_DROPDOWN))
     select.select_by_visible_text(course_group)