class DownloadFiles(object): EXTRA_SMALL_FILE_5MB = Pattern("5MB.png") SMALL_FILE_10MB = Pattern("10MB.png").similar(0.85) SMALL_FILE_20MB = Pattern("20MB.png").similar(0.9) MEDIUM_FILE_50MB = Pattern("50MB.png") MEDIUM_FILE_100MB = Pattern("100MB.png") LARGE_FILE_200MB = Pattern("200MB.png") EXTRA_LARGE_FILE_512MB = Pattern("512MB.png") VERY_LARGE_FILE_1GB = Pattern("1GB.png") DOWNLOAD_TYPE_ICON = Pattern("download_Type_Icon.png").similar(0.7) DOWNLOAD_TYPE_ICON_ZIP = Pattern("download_type_zip_icon.png") DOWNLOAD_FILE_NAME_1GB = Pattern("download_name_1GB.png") DOWNLOAD_FILE_NAME_512MB = Pattern("download_name_512MB.png") DOWNLOAD_FILE_NAME_20MB = Pattern("download_name_20MB.png") DOWNLOAD_FILE_NAME_10MB = Pattern("download_name_10MB.png") DOWNLOAD_FILE_NAME_5MB = Pattern("download_name_5MB.png") LIBRARY_DOWNLOADS_5MB = Pattern("5MB_library_downloads.png") LIBRARY_DOWNLOADS_5MB_HIGHLIGHTED = Pattern( "5MB_library_downloads_highlighted.png") LIBRARY_DOWNLOADS_10MB = Pattern("10MB_library_downloads.png") LIBRARY_DOWNLOADS_20MB = Pattern("20MB_library_downloads.png") LIBRARY_DOWNLOADS_50MB = Pattern("50MB_library_downloads.png") LIBRARY_DOWNLOADS_100MB = Pattern("100MB_library_downloads.png") LIBRARY_DOWNLOADS_200MB = Pattern("200MB_library_downloads.png") LIBRARY_DOWNLOADS_512MB = Pattern("512MB_library_downloads.png") TOTAL_DOWNLOAD_SIZE_1GB = Pattern("download_size_of_1GB.png") TOTAL_DOWNLOAD_SIZE_512MB = Pattern("download_size_of_512MB.png") TOTAL_DOWNLOAD_SIZE_200MB = Pattern("download_size_of_200MB.png") TOTAL_DOWNLOAD_SIZE_100MB = Pattern("download_size_of_100MB.png") TOTAL_DOWNLOAD_SIZE_50MB = Pattern("download_size_of_50MB.png") TOTAL_DOWNLOAD_SIZE_20MB = Pattern("download_size_of_20MB.png") DOWNLOADS_PANEL_5MB_COMPLETED = Pattern("completed_5mb_file.png") DOWNLOADS_PANEL_5MB_MISSING = Pattern("moved_missing_5mb_file.png") DOWNLOADS_PANEL_10MB_COMPLETED = Pattern("completed_10mb_file.png") DOWNLOADS_PANEL_10MB_MISSING = Pattern("moved_missing_10mb_file.png") DOWNLOADS_PANEL_20MB_MISSING = Pattern("moved_missing_20mb_file.png") DOWNLOADS_PANEL_FREETDS_PATCHED = Pattern("completed_freetds_patched.png") DOWNLOADS_PANEL_5MB_COMPLETED_RTL = Pattern("completed_5mb_file_rtl.png") DOWNLOADS_PANEL_10MB_COMPLETED_RTL = Pattern("completed_10mb_file_rtl.png") DOWNLOADS_PANEL_20MB_COMPLETED_RTL = Pattern("completed_20mb_file_rtl.png") FOLDER_VIEW_5MB_HIGHLIGHTED = Pattern( "5MB_folder_view_highlighted.png").similar(0.79) FOLDER_VIEW_10MB_HIGHLIGHTED = Pattern( "10MB_folder_view_highlighted.png").similar(0.79) FIREFOX_INSTALLER = Pattern("firefox_installer.png") FIREFOX_INSTALLER_HIGHLIGHTED = Pattern( "firefox_installer_highlighted.png") STATUS_200 = Pattern("status_200.png") ABOUT = Pattern("about.png") SAVE_FILE = Pattern("save_file.png") DOWNLOAD_CANCELLED = Pattern("download_cancelled.png") OK = Pattern("ok.png").similar(0.6) CANCEL_ALL_DOWNLOADS_POP_UP = Pattern("cancel_all_downloads.png") # Safe Browsing Testing patterns. MALICIOUS = Pattern("malicious.png") MALICIOUS_HTTPS = Pattern("malicious_https.png") DANGEROUS_HOST_WARNING = Pattern("dangerous_host_warning.png") UNCOMMON = Pattern("uncommon.png") UNCOMMON_HTTPS = Pattern("uncommon_https.png") POTENTIALLY_UNWANTED = Pattern("potentially_unwanted.png") DOWNLOADS_PANEL_CONTENT_COMPLETED = Pattern("completed_content.png") DOWNLOADS_PANEL_CONTENT1_COMPLETED = Pattern("completed_content1.png") DOWNLOADS_PANEL_BADREP_COMPLETED = Pattern("completed_badrep.png") DOWNLOADS_PANEL_PUA_COMPLETED = Pattern("completed_pua.png") DOWNLOADS_PANEL_UNKNOWN_COMPLETED = Pattern("completed_unknown.png") DOWNLOADS_PANEL_UNKNOWN1_COMPLETED = Pattern("completed_unknown1.png") LIBRARY_DOWNLOADS_CONTENT = Pattern("content_library_downloads.png") LIBRARY_DOWNLOADS_CONTENT_RED = Pattern( "content_library_downloads_red.png") LIBRARY_DOWNLOADS_CONTENT1 = Pattern("content1_library_downloads.png") LIBRARY_DOWNLOADS_CONTENT1_RED = Pattern( "content1_library_downloads_red.png") LIBRARY_DOWNLOADS_BADREP = Pattern("badrep_library_downloads.png") LIBRARY_DOWNLOADS_BADREP_RED = Pattern("badrep_library_downloads_red.png")
class PreferenceName(object): INTL_UIDIRECTION = Pattern("intl_uidirection.png")
class RecentlyClosedWindows(object): RECENTLY_CLOSED_WINDOWS_TITLE = Pattern( 'recently_closed_windows_label.png') RESTORE_ALL_WINDOWS = Pattern('closed_windows_restore_all_items.png')
class HistoryMenu(object): VIEW_HISTORY_SIDEBAR = Pattern('view_history_sidebar.png') CLEAR_RECENT_HISTORY = Pattern('clear_recent_history.png') RECENTLY_CLOSED_TABS = Pattern('recently_closed_tabs.png') RECENTLY_CLOSED_WINDOWS = Pattern('recently_closed_windows.png') SHOW_ALL_HISTORY = Pattern('show_all_history.png')
class CLearRecentHistory(object): CLEAR_ALL_HISTORY_TITLE = Pattern('sanitize_dialog_title.png') CLEAR_RECENT_HISTORY_TITLE = Pattern( 'sanitize_dialog_non_everything_title.png') class TimeRange(object): LAST_HOUR = Pattern('last_hour.png') LAST_TWO_HOURS = Pattern('last_two_hours.png') LAST_FOUR_HOURS = Pattern('last_four_hours.png') TODAY = Pattern('today.png') EVERYTHING = Pattern('everything.png') # Focused time ranges. CLEAR_CHOICE_LAST_HOUR = Pattern( 'sanitize_duration_choice_last_hour.png') CLEAR_CHOICE_LAST_TWO_HOURS = Pattern( 'sanitize_duration_choice_last_two_hours.png') CLEAR_CHOICE_LAST_FOUR_HOURS = Pattern( 'sanitize_duration_choice_last_four_hours.png') CLEAR_CHOICE_TODAY = Pattern('sanitize_duration_choice_today.png') CLEAR_CHOICE_EVERYTHING = Pattern( 'sanitize_duration_choice_everything.png') # History group. BROWSING_AND_DOWNLOAD_HISTORY = Pattern( 'browsing_and_download_history.png') COOKIES = Pattern('cookies.png') ACTIVE_LOGINS = Pattern('active_logins.png') CACHE = Pattern('cache.png') FORM_AND_SEARCH_HISTORY = Pattern('form_and_search_history.png') # Data group. SITE_PREFERENCES = Pattern('site_preferences.png') OFFLINE_WEBSITE_DATA = Pattern('offline_website_data.png') # Control buttons. CANCEL = Pattern('cancel_button.png') CLEAR_NOW = Pattern('clear_now_button.png') DISABLED_CLEAR_NOW = Pattern('disabled_clear_now_button.png')
class RecentlyClosedTabs(object): RECENTLY_CLOSED_TABS_TITLE = Pattern('recently_closed_tabs_label.png') RESTORE_ALL_TABS = Pattern('closed_tabs_restore_all_items.png')
class Restore(object): CHOOSE_FILE = Pattern('restoreFromFile.png')
class Library(object): TITLE = Pattern('title.png') BACK_BUTTON_DISABLED = Pattern('back_button_disabled.png') FORWARD_BUTTON_DISABLED = Pattern('forward_button_disabled.png') BACK_BUTTON_ENABLED = Pattern('back_button_enabled.png') FORWARD_BUTTON_ENABLED = Pattern('forward_button_enabled.png') ORGANIZE_BUTTON = Pattern('organizeButton.png') class Organize(object): NEW_BOOKMARK = Pattern('newbookmark.png') NEW_FOLDER = Pattern('newfolder.png') NEW_SEPARATOR = Pattern('newseparator.png') if OSHelper.get_os() != OSPlatform.MAC: CLOSE = Pattern('orgClose.png') VIEWS_BUTTON = Pattern('viewMenu.png') class Views(object): SHOW_COLUMNS = Pattern('viewColumns.png') class ShowColumns(object): NAME = Pattern('menucol_placesContentTitle.png') TAGS = Pattern('menucol_placesContentTags.png') LOCATION = Pattern('menucol_placesContentUrl.png') MOST_RECENT_VISIT = Pattern('menucol_placesContentDate.png') VISIT_COUNT = Pattern('menucol_placesContentVisitCount.png') ADDED = Pattern('menucol_placesContentDateAdded.png') LAST_MODIFIED = Pattern('menucol_placesContentLastModified.png') SORT = Pattern('viewSort.png') class Sort(object): UNSORTED = Pattern('viewUnsorted.png') SORT_BY_NAME = Pattern('sort_by_menucol_placesContentTitle.png') SORT_BY_TAGS = Pattern('sort_by_menucol_placesContentTags.png') SORT_BY_LOCATION = Pattern('sort_by_menucol_placesContentUrl.png') SORT_BY_MOST_RECENT_VISIT = Pattern( 'sort_by_menucol_placesContentDate.png') SORT_BY_VISIT_COUNT = Pattern( 'sort_by_menucol_placesContentVisitCount.png') SORT_BY_ADDED = Pattern( 'sort_by_menucol_placesContentDateAdded.png') SORT_BY_LAST_MODIFIED = Pattern( 'sort_by_menucol_placesContentLastModified.png') AZ_SORT_ORDER = Pattern('viewSortAscending.png') ZA_SORT_ORDER = Pattern('viewSortDescending.png') IMPORT_AND_BACKUP_BUTTON = Pattern('maintenanceButton.png') class ImportAndBackup(object): BACKUP = Pattern('backupBookmarks.png') RESTORE = Pattern('fileRestoreMenu.png') class Restore(object): CHOOSE_FILE = Pattern('restoreFromFile.png') IMPORT_BOOKMARKS_FROM_HTML = Pattern('fileImport.png') EXPORT_BOOKMARKS_FROM_HTML = Pattern('fileExport.png') IMPORT_DATA_FROM_ANOTHER_BROWSER = Pattern('browserImport.png') HISTORY = Pattern('history.png') HISTORY_NAME = Pattern('history_name.png') HISTORY_TODAY = Pattern('history_today.png') LIBRARY_WINDOW_HISTORY_TODAY = Pattern('library_window_history_today.png') TODAY_NAME = Pattern('today_name.png') HISTORY_OLDER_THAN_6_MONTHS = Pattern('history_older_than_6_months.png') OLDER_THAN_6_MONTHS_NAME = Pattern('older_than_6_months_name.png') SEARCH_HISTORY = Pattern('searchFilter_history.png') DOWNLOADS = Pattern('downloads.png') SEARCH_DOWNLOADS = Pattern('searchFilter_downloads.png') CLEAR_DOWNLOADS = Pattern('clearDownloadsButton.png') TAGS = Pattern('tags.png') TAGS_NAME = Pattern('tags_name.png') ALL_BOOKMARKS = Pattern('all_bookmarks.png') ALL_BOOKMARKS_NAME = Pattern('all_bookmarks_name.png') BOOKMARKS_TOOLBAR = Pattern('bookmarks_toolbar.png') BOOKMARKS_TOOLBAR_NAME = Pattern('bookmarks_toolbar_name.png') BOOKMARKS_MENU = Pattern('bookmarks_menu.png') BOOKMARKS_MENU_NAME = Pattern('bookmarks_menu_name.png') OTHER_BOOKMARKS = Pattern('other_bookmarks.png') OTHER_BOOKMARKS_NAME = Pattern('other_bookmarks_name.png') SEARCH_BOOKMARKS = Pattern('searchFilter_bookmarks.png') NAME_COLUMN = Pattern('placesContentTitle.png') TAGS_COLUMN = Pattern('placesContentTags.png') LOCATION_COLUMN = Pattern('placesContentUrl.png')
class Organize(object): NEW_BOOKMARK = Pattern('newbookmark.png') NEW_FOLDER = Pattern('newfolder.png') NEW_SEPARATOR = Pattern('newseparator.png') if OSHelper.get_os() != OSPlatform.MAC: CLOSE = Pattern('orgClose.png')
class MoreTools: DOWNLOADS = Pattern("downloads_more_tools.png") DOWNLOADS_OPTION = Pattern("downloads_option.png") CUSTOMIZE_TOOLBAR = Pattern("customize_toolbar.png")
class NavBar(object): BACK_BUTTON = Pattern("back_button.png") BACK_BUTTON_RTL = Pattern("back_button_rtl.png") FORWARD_BUTTON = Pattern("forward_button.png") FORWARD_BUTTON_RTL = Pattern("forward_button_rtl.png") RELOAD_BUTTON = Pattern("reload_button.png") RELOAD_BUTTON_RTL = Pattern("reload_button_rtl.png") HOME_BUTTON = Pattern("home_button.png") LIBRARY_MENU = Pattern("library_button.png") SIDEBAR_MENU = Pattern("sidebar_button.png") SIDEBAR_MENU_RTL = Pattern("sidebar_button_rtl.png") HAMBURGER_MENU = Pattern("panel_ui_menu_button.png").similar(0.6) HAMBURGER_MENU_DARK_THEME = Pattern("panel_ui_menu_button_dark_theme.png") MORE_TOOLS = Pattern("more_tools.png") # Zoom navigation buttons are reachable on NavBar after drag and drop correspondent item from 'Customize...' # hamburger menu. ZOOM_RESET_BUTTON = Pattern("zoom_reset_button_100.png") ZOOM_RESET_BUTTON_90 = Pattern("zoom_reset_button_90.png") ZOOM_RESET_BUTTON_110 = Pattern("zoom_reset_button_110.png") ZOOM_OUT = Pattern("zoom_out_button.png") ZOOM_IN = Pattern("zoom_in_button.png") DEFAULT_ZOOM_LEVEL_TOOLBAR_CUSTOMIZE_PAGE = Pattern( "default_zoom_level_toolbar_customize_page.png") ZOOM_CONTROLS_CUSTOMIZE_PAGE = Pattern("wrapper_zoom_controls.png") TOOLBAR = Pattern("toolbar.png") DOWNLOADS_BUTTON = Pattern("downloads_button.png") DOWNLOADS_BUTTON_BLUE = Pattern("downloads_button_blue.png").similar(0.95) DOWNLOADS_BUTTON_GREY = Pattern("downloads_button_grey.png").similar(0.95) SEVERE_DOWNLOADS_BUTTON = Pattern("downloads_button_severe.png") UNWANTED_DOWNLOADS_BUTTON = Pattern("downloads_button_warning.png") CUSTOM_DOWNLOADS_BUTTON = Pattern("custom_downloads_button.png") CUSTOM_DOWNLOADS_BUTTON_BLUE = Pattern("custom_downloads_button_blue.png") BAR = Pattern("new_place.png") class ContextMenu(object): BOOKMARKS_TOOLBAR = Pattern( "navbar_context_menu_bookmarks_toolbar.png")
class ContextMenu(object): BOOKMARKS_TOOLBAR = Pattern( "navbar_context_menu_bookmarks_toolbar.png")
class Docker: FIREFOX_DOCKER_ICON = Pattern("firefox_logo_dock.png") NEW_PRIVATE_WINDOW_MENU_ITEM = Pattern("new_private_window_menu_item.png") NEW_WINDOW_MENU_ITEM = Pattern("new_window_menu_item.png")