topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday April 16, 2024, 5:31 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Automation via *Screenshots* - wow (based on jython)  (Read 6151 times)

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Automation via *Screenshots* - wow (based on jython)
« on: January 22, 2010, 09:21 AM »
Just learned of this 15 minutes ago. Watched the video. Downloading now. I'll comment as I play with it.

Sikuli
http://sikuli.csail.mit.edu/


ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Automation via *Screenshots* - wow (based on jython)
« Reply #1 on: January 22, 2010, 07:57 PM »
Thanks for sharing :)

I watched a bit of the video demo.  It looks to me like if you want to automate a series of GUI tasks, you write a script that contains functions (like: switchApp, click, wait, and type) that take arguments that can be text or images.

Sample script from first video:

switchApp("System Preferences.app")
click(image of network system preference)
click(image of ethernet option)
click(image of "Using DHCP")
click(image of "Manually" from combo box / drop down)
wait(image of text field labeled "IP Address")
type("192.168.0.1\t")
type("255.255.255.0\t")
type("192,168.0.254")
click(image of "Apply" button)

Note the use of "backslash t" to tab between fields.

sikuli-demo-script.pngAutomation via *Screenshots* - wow (based on jython)

I guess there's a fair bit more to it than this -- there are tutorials and examples at:

http://sikuli.csail..../documentation.shtml
« Last Edit: January 22, 2010, 08:07 PM by ewemoa »