Package ru.yandex.qatools.htmlelements.loader.decorator

Examples of ru.yandex.qatools.htmlelements.loader.decorator.HtmlElementDecorator


        WebElement elementToWrap = HtmlElementFactory.createNamedProxyForWebElement(htmlElementClassLoader,
                locator, elementName);
        htmlElement.setWrappedElement(elementToWrap);
        htmlElement.setName(elementName);
        // Initialize elements of the block
        PageFactory.initElements(new HtmlElementDecorator(elementToWrap), htmlElement);
    }
View Full Code Here


     *
     * @param page           Page object to be initialized.
     * @param locatorFactory Locator factory that will be used to locate elements.
     */
    public static void populatePageObject(Object page, CustomElementLocatorFactory locatorFactory) {
        PageFactory.initElements(new HtmlElementDecorator(locatorFactory), page);
    }
View Full Code Here

        for (WebElement element : elements) {
            T htmlElement = HtmlElementFactory.createHtmlElementInstance(htmlElementClass);
            htmlElement.setWrappedElement(element);
            String htmlElementName = String.format("%s [%d]", name, elementNumber);
            htmlElement.setName(htmlElementName);
            PageFactory.initElements(new HtmlElementDecorator(element), htmlElement);
            htmlElements.add(htmlElement);
            elementNumber++;
        }

        try {
View Full Code Here

    public BlockPageObject(final WebDriver driver) {
        super(driver, new Predicate<PageObject>() {
            @Override
            public boolean apply(PageObject pageObject) {
                PageFactory.initElements(new HtmlElementDecorator(driver), pageObject);
                return true;
            }
        });
    }
View Full Code Here

TOP

Related Classes of ru.yandex.qatools.htmlelements.loader.decorator.HtmlElementDecorator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.