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

net.n2oapp.framework.autotest.impl.collection.N2oRegions Maven / Gradle / Ivy

package net.n2oapp.framework.autotest.impl.collection;

import com.codeborne.selenide.WebElementCondition;
import net.n2oapp.framework.autotest.api.collection.Regions;
import net.n2oapp.framework.autotest.api.component.region.Region;

import static net.n2oapp.framework.autotest.N2oSelenide.component;

public class N2oRegions extends N2oComponentsCollection implements Regions {

    public  T region(int index, Class componentClass) {
        return component(elements().get(index), componentClass);
    }

    public  T region(WebElementCondition findBy, Class componentClass) {
        return component(elements().findBy(findBy), componentClass);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy