def search_by_username(username):
        # click to Username field, clear field and input value
        user_name_field = Ee.wait_until_element_displayed(
            Lum.um_text_field_username)
        user_name_field.clear()
        user_name_field.send_keys(username)

        # click to search button
        Ee.custom_click(Lum.um_button_search)
示例#2
0
    def login(username, password):
        # email
        email_field = Ee.wait_until_element_displayed(Agl.email_field)
        email_field.clear()
        email_field.send_keys(username)

        # password
        password_field = Ee.wait_until_element_displayed(Agl.password_field)
        password_field.clear()
        password_field.send_keys(password)

        # click to login button
        Ee.custom_click(Agl.login_button)
        time.sleep(2)
    def check_table_position(table_col, table_row):
        # looking for exact position in table based on col and row
        um_table_position = Lum.um_table_position(table_col, table_row)
        # alternative link to table value in case there is no position based on col and row
        um_table_position_alt = Lum.um_table_position_alt

        value = Ee.get_text_from_displayed_element_special(
            um_table_position, um_table_position_alt)
        return value
示例#4
0
    def logout():
        # open Welcome Admin menu and click to Logout item
        Ee.custom_click(Agl.welcome_admin_menu)
        Ee.custom_click(Agl.logout_item)

        # wait until Login button on login page is displayed
        Ee.wait_until_element_displayed(Agl.login_button)
 def direct_navigate_users(cls):
     cls.navigate_to_admin()
     cls.navigate_to_user_management()
     # cls.navigate_to_users()
     Ee.wait_until_element_displayed(Lum.um_button_search)
 def navigate_to_users():
     # click on Users menu
     Ee.custom_click(Lum.um_users_menu)
 def navigate_to_user_management():
     # click on User Management menu
     Ee.custom_click(Lg.menu_user_management)
     time.sleep(1)
 def navigate_to_admin():
     # click on Admin item in menu
     Ee.custom_click(Lg.menu_admin)
     time.sleep(1)