Skip to content

Instantly share code, notes, and snippets.

@otaviomedeiros
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otaviomedeiros/11228971 to your computer and use it in GitHub Desktop.
Save otaviomedeiros/11228971 to your computer and use it in GitHub Desktop.
xdotool
sudo apt-get install xdotool
# check java version on firefox
xdotool search --name "Verify Java Version" windowactivate --sync mousemove --window %1 500 350 click 1
# click on run button of java security warning
xdotool search --name "Security Information" windowactivate --sync mousemove --window %1 410 290 click 1
# SCREENSHOT, needs imagemagick
import -window root screenshot.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment