public static <T extends WebElement> T createFragment(Class<T> fragmentClass, WebElement element) {
        return PrimePageFragmentFactory.create(fragmentClass, element);
    }
Creates the PrimeFaces Selenium component for the element.

@param fragmentClass the component class to create like InputText.class
@param element the WebElement to bind this component class to
@param <T> the type of component returned
@return the component
primefaces-selenium/primefaces-selenium-core/src/main/java/org/primefaces/selenium/PrimeSelenium.java