Skip to content

Instantly share code, notes, and snippets.

@beothorn
Last active August 29, 2015 14:02
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 beothorn/5cbddfd39acda4b809f5 to your computer and use it in GitHub Desktop.
Save beothorn/5cbddfd39acda4b809f5 to your computer and use it in GitHub Desktop.
import webGrude.annotations.Page;
import webGrude.annotations.Selector;
public class PrintExampleSearchResults {
@Page("http://www.example.com/{0}")
public static class SearchResultPage {
@Selector("h1") public String header;
}
public static void main(String... args){
SearchResultPage searchPage = Browser.open(SearchResultPage.class, "search term");
System.out.println(searchPage.header);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment