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

org.cauli.ui.selenium.element.WebElementTransfer Maven / Gradle / Ivy

package org.cauli.ui.selenium.element;

import com.google.common.collect.Lists;
import org.cauli.ui.selenium.browser.IBrowser;
import org.openqa.selenium.WebElement;

import java.util.List;

/**
 * @auther sky
 */
public class WebElementTransfer {

    public static List transferWebElements(List webElements,IBrowser browser){
        List cauliElements = Lists.newArrayList();
        for(WebElement webElement:webElements){
            cauliElements.add(transferWebElement(webElement,browser));
        }
        return cauliElements;
    }

    public static CauliElement transferWebElement(WebElement webElement,IBrowser browser){
        CauliElement cauliElement=new CauliElement(browser);
        cauliElement.setElement(webElement);
        return cauliElement;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy