def open_discopane(my_base_url, selenium): """Open discopane via the menu.""" with selenium.context(selenium.CONTEXT_CHROME): toolbar = selenium.find_element_by_id('menu_ToolsPopup') toolbar.click() addons = selenium.find_element_by_id('menu_openAddons') addons.click() return DiscoveryPane(selenium, my_base_url).wait_for_page_to_load()
def discovery_pane(selenium, my_base_url): """Open the discovery pane via the URL.""" return DiscoveryPane(selenium, my_base_url).open()
def discovery_pane(selenium, base_url): return DiscoveryPane(selenium, base_url).open()