Skip to content

Instantly share code, notes, and snippets.

@lfryc
Created September 20, 2012 16:19
Show Gist options
  • Save lfryc/3756879 to your computer and use it in GitHub Desktop.
Save lfryc/3756879 to your computer and use it in GitHub Desktop.
@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";
}
}
@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