Interface BrowserAssertions
- All Known Implementing Classes:
PlaywrightBrowserValidationsBuilder, WebDriverBrowserValidationsBuilder
public interface BrowserAssertions
Public contract for browser-level hard/soft validation starters.
-
Method Summary
Modifier and TypeMethodDescriptiondefault NativeValidationsBuilderStarts an assertion against the current browser alert, confirm, or prompt dialog text.default ValidationsExecutorAsserts that the current page matches its baseline full-page screenshot.default ValidationsExecutormatchesScreenshot(VisualComparisonOptions options) Asserts that the current page matches its baseline full-page screenshot, using the given diff-budget/mask options (seeVisualComparisonOptions).text()title()url()
-
Method Details
-
attribute
-
url
NativeValidationsBuilder url() -
title
NativeValidationsBuilder title() -
alertText
Starts an assertion against the current browser alert, confirm, or prompt dialog text.- Returns:
- a native validation builder for alert text comparisons
-
text
NativeValidationsBuilder text() -
matchesScreenshot
Asserts that the current page matches its baseline full-page screenshot. Executes immediately, like every other assertion.- Returns:
- a ValidationsExecutor object to optionally set a custom validation message
-
matchesScreenshot
Asserts that the current page matches its baseline full-page screenshot, using the given diff-budget/mask options (seeVisualComparisonOptions). Executes immediately.- Parameters:
options- the visual comparison options (diff budgets, masks), ornullfor defaults- Returns:
- a ValidationsExecutor object to optionally set a custom validation message
-