def look_for_activity_bar(context):
    """Try to find the activity bar."""
    assert context is not None
    perform_find_the_region(context, "activity bar", "activity bar 2")
def click_on_the_file_menu(context):
    """Click on the File menu."""
    assert context is not None
    perform_find_the_region(context, "file menu header")
    perform_click_on_the_region(context)
def click_on_the_exit_menu_entry(context):
    """Click on the Exit menu entry in File menu."""
    assert context is not None
    perform_find_the_region(context, "file menu exit")
    perform_click_on_the_region(context)
def find_the_region_with_alternative(context, region1, region2):
    """Try to find region on screen based on specified pattern."""
    assert context is not None
    assert region1 is not None
    assert region2 is not None
    perform_find_the_region(context, region1, region2)
def look_for_icon_with_info_about_more_problems(context, number):
    """Try to find the icon that informed users about more problems."""
    assert context is not None
    perform_find_the_region(context, number + " problems")
def look_for_dependency_analytics_info_region(context):
    """Try to find the Dependency Analytics info region."""
    assert context is not None
    perform_find_the_region(context, "dependency analytics info region")
    perform_find_the_region(context, "dependency analytics info region 0 12")
def look_for_analytics_page_with_specified_header(context, header):
    """Try to find specified header on the Analytics page."""
    assert context is not None
    assert header is not None
    region = "analysis_security_{}_header".format(header.lower())
    perform_find_the_region(context, region)
def look_for_plugin_install_icon_and_uninstall_button(context):
    """Try to find the Install icon and a Uninstall icon for a selected plugin."""
    assert context is not None
    perform_find_the_region(context, "installed icon and uninstall button")
def look_for_dependency_analysis_report_menu_entry_context_menu(context):
    """Try to find the Dependency Analysis Report menu entry in context menu."""
    assert context is not None
    perform_find_the_region(context, "context menu dependency analytics entry")
Пример #10
0
def look_for_plugin_reload_and_uninstall_button(context):
    """Try to find the Reload and Unistall buttons for a selected plugin."""
    assert context is not None
    perform_find_the_region(context, "reload uninstall buttons")
Пример #11
0
def look_for_plugin_reload_button_and_gear_icon(context):
    """Try to find the Reload button with Gear icon for a selected plugin."""
    assert context is not None
    perform_find_the_region(context, "reload gear")
Пример #12
0
def look_for_uninstalled_label(context):
    """Try to find the Uninstalled label."""
    assert context is not None
    perform_find_the_region(context, "uninstalled label")
Пример #13
0
def look_for_plugin_uninstall_button(context):
    """Try to find the Unistall button for a selected plugin."""
    assert context is not None
    perform_find_the_region(context, "plugin uninstall button",
                            "plugin uninstall button 2")
Пример #14
0
def look_for_dependency_analytics_title(context):
    """Try to find the Dependency Analytics title."""
    assert context is not None
    perform_find_the_region(context, "dependency analytics title")
Пример #15
0
def look_for_extension_icon_on_activity_bar(context):
    """Try to find the extension icon on activity bar."""
    assert context is not None
    perform_find_the_region(context, "extensions icon")
Пример #16
0
def look_for_empty_window_or_welcome_tab(context):
    """Try to find the Welcome tab displayed after all editor tabs are closed."""
    assert context is not None
    perform_find_the_region(context, "welcome tab", "empty window")
Пример #17
0
def look_for_search_extension_in_marketplace(context):
    """Try to find the Marketplace input box."""
    assert context is not None
    perform_find_the_region(context, "search extension in marketplace")
Пример #18
0
def look_for_icon_with_info_about_zero_problems(context):
    """Try to find the icon that informed users about zero problems."""
    assert context is not None
    perform_find_the_region(context, "zero problems")
Пример #19
0
def look_for_openshift_logo(context):
    """Try to find the OpenShift logo."""
    assert context is not None
    perform_find_the_region(context, "openshift logo", "openshift logo 2")
Пример #20
0
def look_for_icon_with_info_about_one_problem(context):
    """Try to find the icon that informed users about one problem."""
    assert context is not None
    perform_find_the_region(context, "one problem")
Пример #21
0
def look_for_dependency_analytics_header(context):
    """Try to find the Dependency Analytics header."""
    assert context is not None
    perform_find_the_region(context, "dependency analytics header")
def find_the_region(context, region):
    """Try to find region on screen based on specified pattern."""
    assert context is not None
    assert region is not None
    perform_find_the_region(context, region)