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 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 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)
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)