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

net.serenitybdd.screenplay.targets.IFrame Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.serenitybdd.screenplay.targets;

import org.openqa.selenium.By;

import java.util.List;

import static java.util.Arrays.asList;
import static java.util.stream.Collectors.joining;

public class IFrame {

    public final List locators;

    private IFrame(By... locators) {
        this.locators = asList(locators);
    }

    public static IFrame withPath(By... locators) {
        return new IFrame(locators);
    }

    @Override
    public String toString() {
        return locators.stream().map(locator -> locator.toString().split(":")[1].trim()).collect(joining(", "));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy