Created
September 20, 2012 16:19
-
-
Save lfryc/3756879 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Location("view/conference/create.jsf") | |
public class ConferencePage { | |
@FindBy(id = "create") | |
private ConferenceForm form; | |
public ConferenceForm getForm() { | |
return form; | |
} | |
} | |
public class ConferencePage implements Bookmarkable { | |
@FindBy(id = "create") | |
private ConferenceForm form; | |
public ConferenceForm getForm() { | |
return form; | |
} | |
public String getLocation() { | |
return "view/conference/create.jsf"; | |
} | |
} |
This file contains hidden or 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
@Test | |
public void test() { | |
ConferencePage page = goTo(ConferencePage.class); | |
ConferenceForm = page.getForm(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment