Last active
August 29, 2015 14:02
-
-
Save beothorn/5cbddfd39acda4b809f5 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
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