Skip to content

Instantly share code, notes, and snippets.

@jhuska
Created July 31, 2013 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jhuska/6119985 to your computer and use it in GitHub Desktop.
Save jhuska/6119985 to your computer and use it in GitHub Desktop.
foo
package org.richfaces.tests.page.fragments.impl;
import org.jboss.arquillian.graphene.enricher.findby.FindBy;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import org.richfaces.tests.page.fragments.impl.accordion.RichFacesAccordion;
public class FooBar {
@FindBy
private RichFacesAccordion accordion;
@Test
public void testFoo() {
UserDetails details = getUserDetails();
}
public UserDetails getUserDetails() {
return accordion.switchTo(0).getContent(UserDetails.class);
}
public static class UserDetails {
@FindBy
private WebElement name;
@FindBy
private WebElement age;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment