All Downloads are FREE. Search and download functionalities are using the official Maven repository.

click.webelement.pagefactory.parameterized.PageObjectParameterized Maven / Gradle / Ivy

package click.webelement.pagefactory.parameterized;

import org.openqa.selenium.SearchContext;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.pagefactory.DefaultElementLocator;

/**
 * @author Alexey Razgulyaev
 */
public class PageObjectParameterized {

    public PageObjectParameterized(SearchContext searchContext){
        PageFactory
                .initElements(
                        new ParameterizedFieldDecorator(
                                field -> new DefaultElementLocator(searchContext, new WecAnnotations(field)
                                )
                        ), this);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy