Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed May 12, 2024
2 parents f5a6693 + ebeac1b commit 367829a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ public static Question<String> currentUrl() {
public static Question<String> alertText() {
return Question.about("alert text").answeredBy(actor -> BrowseTheWeb.as(actor).getAlert().getText());
}

public static Question<String> source() {
return Question.about("page source").answeredBy(actor -> BrowseTheWeb.as(actor).getDriver().getPageSource());
}
}

0 comments on commit 367829a

Please sign in to comment.