Skip to content

Instantly share code, notes, and snippets.

@Vanilton18
Created February 25, 2016 01:48
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/27357aebe484134439ec to your computer and use it in GitHub Desktop.
Save Vanilton18/27357aebe484134439ec 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 InteracoesInputPaste {
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("main.png");
screen.click("menu_funcoes.png");
screen.click("input_paste.png");
screen.wait("enter.png");
screen.paste("vanilton");
screen.click("enter.png");
screen.find("vanitondiff.png");
screen.click("limpar.png");
screen.type("field_text.png", "vanilton.net" );
screen.click("enter.png");
screen.find("vaniltoneq.png");
screen.click("fechar.png");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment