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

net.serenitybdd.screenplay.actions.DevToolsQuery Maven / Gradle / Ivy

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

import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.abilities.BrowseTheWeb;
import org.openqa.selenium.devtools.DevTools;

import java.util.function.Function;

public class DevToolsQuery {

    public static DevToolsQuery ask() {
        return new DevToolsQuery();
    }
    public  Question about(Function question) {
        return actor -> (T) question.apply(BrowseTheWeb.as(actor).getDevTools());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy