Skip to content

Instantly share code, notes, and snippets.

@Vanilton18
Created February 25, 2016 01:24
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 Vanilton18/58ab7213f8c68c507483 to your computer and use it in GitHub Desktop.
Save Vanilton18/58ab7213f8c68c507483 to your computer and use it in GitHub Desktop.
package net.vanilton.test;
import java.io.IOException;
import org.sikuli.basics.Settings;
import org.sikuli.script.FindFailed;
import org.sikuli.script.Screen;
public class Interacoes {
static Screen screen = new Screen();
public static void main(String[] args) throws IOException, FindFailed {
//Comando para definir um caminho padrão para as imagens
Settings.BundlePath = "src//test//resources//pictures";
Runtime.getRuntime().exec("java -jar examples-sikuli.jar");
screen.find("mainVanilton.png");
screen.click("menu_funcoes.png");
screen.click("find_click.png");
screen.click("linux.png");
screen.hover("ico_linux.png");
screen.click("macintosh.png");
screen.hover("ico_mac.png");
screen.click("fechar.png");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment