Package net.serenitybdd.screenplay.playwright.interactions
package net.serenitybdd.screenplay.playwright.interactions
-
ClassDescriptionBuilder for creating a cookie with various options.Start capturing browser console messages for later analysis.Represents a captured console message with its type, text, and location.Start capturing network requests and responses for later analysis.Represents a captured network request with its response.This method clicks an element matching selector by performing the following steps: Find an element match matching selector.Check for console errors and warnings, optionally failing the test if any are found.Exception thrown when console messages are found and reportOnly is false.Clear an input field.Clear all previously granted browser permissions.This method clicks an element matching selector by performing the following steps: Find an element match matching selector.Control the browser's clock for testing time-dependent features.Deselect options from a multi-select dropdown by text, value or index.Builder for deselecting all options.This method double clicks an element matching selector.Drag an element to another element (drag and drop).Emulate different devices by setting viewport size, user agent, and device characteristics.Enter a text value into an input field.Execute JavaScript on the current page.Focus on an element or blur (unfocus) the currently focused element.Generate a PDF document from the current page.Grant browser permissions for testing features that require user consent.Handle JavaScript dialogs (alert, confirm, prompt).Hover over an element.Manage browser cookies - add, remove, or clear cookies.Manage browser storage (localStorage and sessionStorage).Browser navigation interactions - back, forward, refresh.Press keyboard key(s).Report captured console messages to the Serenity report as evidence.Restore browser session state (cookies, localStorage, sessionStorage) from a previously saved file.Right-click (context click) on an element.Save the current browser session state (cookies, localStorage, sessionStorage) to a file.Comprehensive scrolling operations for both page-level and element scrolling.Element scrolling with alignment options.Scroll an element into view.Select an option from dropdown by text, value or index.Set the browser's geolocation for testing location-based features.Switch between browser pages (tabs) or open new ones.Capture screenshots of the page or specific elements.Perform a tap (touch) action on an element.Uncheck a checkbox element.Upload file using file chooser.Wait for some element or state.Wait for a file download while performing an action that triggers it.Perform actions within an iframe.