Class PlaywrightBrowserValidationsBuilder
java.lang.Object
com.shaft.gui.playwright.validation.PlaywrightBrowserValidationsBuilder
- All Implemented Interfaces:
BrowserAssertions
-
Constructor Summary
ConstructorsConstructorDescriptionPlaywrightBrowserValidationsBuilder(ValidationEnums.ValidationCategory validationCategory, PlaywrightSession session) -
Method Summary
Modifier and TypeMethodDescriptionUse this to check against the current browser alert text.Asserts that the current page matches its baseline full-page screenshot.matchesScreenshot(VisualComparisonOptions options) Asserts that the current page matches its baseline full-page screenshot, using the given diff-budget/mask options (seeVisualComparisonOptions).text()title()url()
-
Constructor Details
-
PlaywrightBrowserValidationsBuilder
public PlaywrightBrowserValidationsBuilder(ValidationEnums.ValidationCategory validationCategory, PlaywrightSession session)
-
-
Method Details
-
attribute
- Specified by:
attributein interfaceBrowserAssertions
-
url
- Specified by:
urlin interfaceBrowserAssertions
-
title
- Specified by:
titlein interfaceBrowserAssertions
-
alertText
Use this to check against the current browser alert text.- Specified by:
alertTextin interfaceBrowserAssertions- Returns:
- a NativeValidationsBuilder object to continue building your validation
-
text
- Specified by:
textin interfaceBrowserAssertions
-
matchesScreenshot
Description copied from interface:BrowserAssertionsAsserts that the current page matches its baseline full-page screenshot. Executes immediately, like every other assertion.- Specified by:
matchesScreenshotin interfaceBrowserAssertions- Returns:
- a ValidationsExecutor object to optionally set a custom validation message
-
matchesScreenshot
Description copied from interface:BrowserAssertionsAsserts that the current page matches its baseline full-page screenshot, using the given diff-budget/mask options (seeVisualComparisonOptions). Executes immediately.- Specified by:
matchesScreenshotin interfaceBrowserAssertions- Parameters:
options- the visual comparison options (diff budgets, masks), ornullfor defaults- Returns:
- a ValidationsExecutor object to optionally set a custom validation message
-