Last active
August 29, 2015 14:05
-
-
Save doubleshow/6f123046186d46be270f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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