Skip to content

Instantly share code, notes, and snippets.

@doubleshow
Last active August 29, 2015 14:05
Show Gist options
  • Save doubleshow/6f123046186d46be270f to your computer and use it in GitHub Desktop.
Save doubleshow/6f123046186d46be270f to your computer and use it in GitHub Desktop.
package org.sikuli.slides.driver.examples.mailchimp;
import java.net.MalformedURLException;
import java.net.URL;
import org.sikuli.api.API;
import org.sikuli.slides.driver.WidgetSlideFactory;
import org.sikuli.slides.driver.Widget;
import org.sikuli.slides.driver.annotations.WidgetSlide;
public class SignupFormExample {
@WidgetSlide("form.pptx")
public static class SignupForm {
public Widget email;
public Widget username;
public Widget password;
public Widget create;
}
public static void main(String[] arg) throws MalformedURLException {
API.browse(new URL("https://login.mailchimp.com/signup?"));
API.pause(1000);
SignupForm menu = WidgetSlideFactory.create(SignupForm.class);
menu.email.type("[email protected]");
menu.username.type("newuser");
menu.password.type("1As3s#sac2");
menu.create.click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment