Created
June 5, 2012 17:42
-
-
Save kevincolyar/2876495 to your computer and use it in GitHub Desktop.
Reload without losing focus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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