net.serenitybdd.screenplay.playwright.questions.TheWebPage Maven / Gradle / Ivy
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