Skip to content

Instantly share code, notes, and snippets.

@doubleshow
Last active August 29, 2015 14:05
Show Gist options
  • Save doubleshow/e1eb091346fa698ed5f8 to your computer and use it in GitHub Desktop.
Save doubleshow/e1eb091346fa698ed5f8 to your computer and use it in GitHub Desktop.
package org.sikuli.slides.driver.examples.chase;
import java.net.MalformedURLException;
import java.net.URL;
import org.sikuli.api.API;
import org.sikuli.slides.driver.Widget;
import org.sikuli.slides.driver.WidgetSlideFactory;
import org.sikuli.slides.driver.annotations.WidgetSlide;
public class MobileExample {
@WidgetSlide("chase-main.pptx")
public static class Main {
public Widget logon;
public Widget contact;
public Widget find;
}
@WidgetSlide("chase-accounts.pptx")
public static class Accounts {
public Widget my;
public Widget pay;
public Widget deposit;
public Widget more;
}
public static void main(String[] arg) throws MalformedURLException {
API.browse(new URL("http://www.appdemostore.com/demo?id=1942049"));
API.pause(2000);
Main menu = WidgetSlideFactory.create(Main.class);
Accounts accounts = WidgetSlideFactory.create(Accounts.class);
menu.logon.click();
API.pause(2000);
accounts.pay.click();
API.pause(2000);
accounts.deposit.click();
API.pause(2000);
accounts.more.click();
API.pause(2000);
accounts.my.click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment