def step_impl(context): go_to_homepage(context) context.dropdown_menu = dropdown_menu = find_id_with_wait(context, DROPDOWN_MENU_ID) if not dropdown_menu.is_displayed(): # Perhaps the screen was too small and we need to expand the accordion menu navbar_toggle = find_id_with_wait(context, NAVBAR_TOGGLE_ID) navbar_toggle.click() assert elem_is_visible_with_wait(context, dropdown_menu), "Dropdown menu is not visible!"
def start_intro(context): sp_elem = find_id_with_wait(context, STARTING_POINT_ID) #WebElement sp_elem.click()
def step_impl(context): find_id_with_wait(context, 'user-name') # Ensure the menu has loaded at all assert_no_element_by_id(context, '#' + DOCS_LINK_ID)
def step_impl(context): docs_link = find_id_with_wait(context, DOCS_LINK_ID) assert elem_is_visible_with_wait(context, docs_link), "Documentation link is not visible!"
def step_impl(context): logout_link = find_id_with_wait(context, LOGOUT_LINK_ID) assert logout_link is not None, "Couldn't find the logout link in the DOM!" assert elem_is_visible_with_wait(context, logout_link), "Logout link is not visible!"