def page_end(): """Jump to the bottom of the page.""" type(text=Key.END)
def force_close(): """Move to the previous frame (can be in content or in chrome).""" type(text=Key.F4, modifier=KeyModifier.ALT) type(text='u', modifier=KeyModifier.CTRL)
def full_screen(): """Toggle full screen mode.""" if OSHelper.is_mac(): type(text='f', modifier=[KeyModifier.CMD, KeyModifier.SHIFT]) else: type(text=Key.F11)
def select_search_bar(): """If the search bar is present, select the search bar, otherwise this selects the location bar.""" if OSHelper.is_mac(): type(text='k', modifier=KeyModifier.CMD) else: type(text='k', modifier=KeyModifier.CTRL)
def close_tab(): """Close the currently focused tab (Except for app tabs).""" if OSHelper.is_mac(): type(text='w', modifier=KeyModifier.CMD) else: type(text='w', modifier=KeyModifier.CTRL)
def edit_undo(): """Undoes the previous operation.""" if OSHelper.is_mac(): type(text='z', modifier=KeyModifier.CMD) else: type(text='z', modifier=KeyModifier.CTRL)
def quick_find_link(): """Quick find opens simple find link toolbar that remains active for only six seconds.""" if OSHelper.is_mac(): type(text="'", modifier=KeyModifier.CMD) else: type(text="'", modifier=KeyModifier.CTRL)
def open_print_page(): """Open the Print dialog.""" if OSHelper.is_mac(): type(text='p', modifier=KeyModifier.CMD) else: type(text='p', modifier=KeyModifier.CTRL)
def open_save_page(): """Open the Save dialog.""" if OSHelper.is_mac(): type(text='s', modifier=KeyModifier.CMD) else: type(text='s', modifier=KeyModifier.CTRL)
def next_frame(): """Move to the next frame (can be in content or in chrome).""" type(text=Key.F6)
def previous_frame(): """Move to the previous frame (can be in content or in chrome).""" type(text=Key.F6, modifier=KeyModifier.SHIFT)
def focus_previous_item(): """Focus previous actionable item.""" type(text=Key.TAB, modifier=KeyModifier.SHIFT)
def focus_next_item(): """Focus next actionable item.""" type(text=Key.TAB)
def page_home(): """Jump to the top of the page.""" type(text=Key.HOME)
def edit_redo(): """Redo the last operation of Undo.""" if OSHelper.is_mac(): type(text='z', modifier=[KeyModifier.CMD, KeyModifier.SHIFT]) else: type(text='z', modifier=[KeyModifier.CTRL, KeyModifier.SHIFT])
def zoom_in(): """Zoom in one increment.""" if OSHelper.is_mac(): type(text='+', modifier=KeyModifier.CMD) else: type(text='+', modifier=KeyModifier.CTRL)
def edit_select_all(): """Selects the entire contents of focused field or page.""" if OSHelper.is_mac(): type(text='a', modifier=KeyModifier.CMD) else: type(text='a', modifier=KeyModifier.CTRL)
def zoom_out(): """Zoom out one increment.""" if OSHelper.is_mac(): type(text='-', modifier=KeyModifier.CMD) else: type(text='-', modifier=KeyModifier.CTRL)
def open_find(): """Open the find toolbar.""" if OSHelper.is_mac(): type(text='f', modifier=KeyModifier.CMD) else: type(text='f', modifier=KeyModifier.CTRL)
def restore_zoom(): """Restores zoom level to page default.""" if OSHelper.is_mac(): type(text='0', modifier=KeyModifier.CMD) else: type(text='0', modifier=KeyModifier.CTRL)
def close_find(): """Close the regular find toolbar or quick find toolbar, if it has focus.""" type(text=Key.ESC)
def edit_cut(): """Cut selection to clipboard.""" if OSHelper.is_mac(): type(text='x', modifier=KeyModifier.CMD) else: type(text='x', modifier=KeyModifier.CTRL)
def open_search_manager(): """If the search bar has focus, open the search engine manager.""" type(text=Key.DOWN, modifier=KeyModifier.ALT)
def edit_delete(): """Delete selected text. If nothing is selected, delete previous character. """ type(text=Key.DELETE)
def close_window(): """Close the currently focused window.""" if OSHelper.is_mac(): type(text='w', modifier=[KeyModifier.CMD, KeyModifier.SHIFT]) else: type(text='w', modifier=[KeyModifier.CTRL, KeyModifier.SHIFT])
def edit_paste(): """Paste contents of the clipboard to the focused text field.""" if OSHelper.is_mac(): type(text='v', modifier=KeyModifier.CMD) else: type(text='v', modifier=KeyModifier.CTRL)
def change_window_view(): """Change the focus on another window.""" if OSHelper.is_mac(): type(text=Key.TAB, modifier=KeyModifier.CMD) else: type(text=Key.TAB, modifier=KeyModifier.ALT)
def edit_paste_plain(): """Paste contents of the clipboard, as plain text, to the focused text field.""" if OSHelper.is_mac(): type(text='v', modifier=[KeyModifier.CMD, KeyModifier.SHIFT]) else: type(text='v', modifier=[KeyModifier.CTRL, KeyModifier.SHIFT])
def navigate_back(): """Navigate back in browsing history one page visit.""" if OSHelper.is_mac(): type(text='[', modifier=KeyModifier.CMD) else: type(text=Key.LEFT, modifier=KeyModifier.ALT)
def page_up(): """Jump up one screen.""" type(text=Key.SPACE, modifier=KeyModifier.SHIFT)