Esempio n. 1
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 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)
Esempio n. 3
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 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)