Skip to content

Instantly share code, notes, and snippets.

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
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
@FindBy
@DynamicPanel(1)
TabPanel panel1;
@FindBy
@DynamicPanel(2)
TabPanel panel2
@Content(item = 1)
@DynamicPanel(1)
@jhuska
jhuska / gist:3781166
Created September 25, 2012 11:01
Example of Page Fragment which uses PageFragmentsContainer
package org.jboss.arquillian.graphene.enricher.stub;
import org.jboss.arquillian.graphene.spi.annotations.Root;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class PageFragmentWithContainerUsage<T, E> {
@Root
@SuppressWarnings(value="unused")
guardXhr(WebElement)
gurdXhr(element).click()
guardXhr(object).someAction();
19:19:40,609 SEVERE [org.richfaces.demo.push.TopicsInitializer] (RegisterTopicThread) topic pushTopicsContext not ready yet, sleeping
19:19:40,616 SEVERE [org.richfaces.demo.push.TopicsInitializer] (RegisterTopicThread) topic pushJms not ready yet, sleeping
19:19:40,620 SEVERE [org.richfaces.demo.push.TopicsInitializer] (RegisterTopicThread) topic pushCdi not ready yet, sleeping