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

net.serenitybdd.screenplay.playwright.questions.TheWebPage Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
package net.serenitybdd.screenplay.playwright.questions;

import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.playwright.abilities.BrowseTheWebWithPlaywright;

public class TheWebPage {
    /**
     * Returns the page's title
     */
    public static Question title() {
        return Question.about("the page title").answeredBy(
                actor -> BrowseTheWebWithPlaywright.as(actor).getCurrentPage().title()
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy