org.selophane.elements.base.Fragment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webtest Show documentation
Show all versions of webtest Show documentation
Some additional helper for webtesting with selenium
package org.selophane.elements.base;
import org.openqa.selenium.support.PageFactory;
import org.selophane.elements.factory.api.ChainedElementLocatorFactory;
import org.selophane.elements.factory.api.ElementDecorator;
/**
* Baseclass of a fragment which handles the initialization.
*
*/
public class Fragment extends ElementImpl {
/**
*
* Initiates an fragment.
*
* @param elementLocator the locator of the webelement.
*/
public Fragment(final UniqueElementLocator elementLocator) {
super(elementLocator);
PageFactory.initElements(
new ElementDecorator(elementLocator.getWebDriver(),
new ChainedElementLocatorFactory(elementLocator),
elementLocator.getPageName(),
elementLocator.getFieldDescription()),
this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy