Created
July 31, 2013 07:18
-
-
Save jhuska/6119985 to your computer and use it in GitHub Desktop.
foo
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
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