Skip to content

Instantly share code, notes, and snippets.

@kevincolyar
Created June 5, 2012 17:42
Show Gist options
  • Save kevincolyar/2876495 to your computer and use it in GitHub Desktop.
Save kevincolyar/2876495 to your computer and use it in GitHub Desktop.
Reload without losing focus
map "<Ctrl-Shift-R>" do
app = Accessibility::Gateway.get_application_by_name "Google Chrome"
reload = app.main_window.find.first_item_matching(:role => Matches.partial("button"),:description => Matches.exact("Reload"))
reload.press
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment