Class BrowserActions
- All Implemented Interfaces:
BrowserActionsContract
driver.browser() on a SHAFT.GUI.WebDriver instance.
Example usage:
SHAFT.GUI.WebDriver driver = new SHAFT.GUI.WebDriver();
driver.browser()
.navigateToURL("https://example.com")
.and().maximizeWindow();
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newBrowserActionsinstance and initializes the underlying driver using the framework's default driver factory configuration.BrowserActions(DriverFactoryHelper helper) Creates a newBrowserActionsinstance backed by an existingDriverFactoryHelper.BrowserActions(org.openqa.selenium.WebDriver driver) Creates a newBrowserActionsinstance wrapping the providedWebDriver.BrowserActions(org.openqa.selenium.WebDriver driver, boolean isSilent) Creates a newBrowserActionsinstance wrapping the providedWebDriver, with control over whether reporting output is suppressed. -
Method Summary
Modifier and TypeMethodDescriptionAccepts the current browser alert, confirm, or prompt dialog.Provides access to accessibility testing actions for the current browser session.Adds a cookie to the current browsing context.and()Returns this instance to allow fluent (method-chaining) syntax between successive actions.assertContract(String contractFilePath, String... urlContains) Starts hard-assert validation of live browser responses against an HTTP contract.Opens a hard-assertion builder scoped to the current browser state.blockNetworkResources(String... urlPatterns) Blocks browser requests matching DevTools URL patterns.Attempts to capture a page snapshot archive in the format of a .mht file Works only for Chromium based driver instances For other driver types attempts to attach the current page source (for web) or accessibility tree (for mobile)Use this action to return a full page screenshot.captureScreenshot(Screenshots type) Use this action to return a page screenshot.Use this action to return a page snapshot.Removes all browser network interception rules registered for the current WebDriver session.voidCloses the current browser windowDeletes all the cookies of the current browsing context.deleteCookie(String cookieName) Deletes the cookie data matching with the provided cookie name for the current browsing context.Dismisses the current browser alert, confirm, or prompt dialog.Resize the window to fill the current screenvoidGenerates a Google Lighthouse performance report for the currently open page.Gets the current browser alert, confirm, or prompt dialog text.Set<org.openqa.selenium.Cookie> Gets all cookies for the current browsing context.Returns the handle for currently active context.Returns a list of unique handles for all the currently open contexts.org.openqa.selenium.CookieGets a cookie with a given name.getCookieDomain(String cookieName) Gets the cookie domain.getCookiePath(String cookieName) Gets the cookie path.getCookieValue(String cookieName) Gets the cookie value.Gets the current page URL and returns it as a stringGets the current window title and returns it as a stringGets the current page source and returns it as a stringGets the current window handle and returns it as a stringReturns a list of unique handles for all the currently open windows.Gets the current window size and returns it as a stringGets the current window position and returns it as a stringGets the current window size and returns it as a stringGets the current window size and returns it as a stringEnables offline network mode for DevTools-capable browsers.Imports API session cookies into the current browser context.importCookiesFrom(SHAFT.API api, String domainFilter, String pathFilter) Imports matching API session cookies into the current browser context.importHeaderToLocalStorage(SHAFT.API api, String headerName, String storageKey) Copies a selected API session header intolocalStorage.intercept(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) Intercepts outgoing HTTP requests matching the given predicate and substitutes the real network response with the providedHttpResponse.Starts a fluent browser network interception builder.booleanChecks whether a browser alert, confirm, or prompt dialog is currently present.loadStorageState(String filePath) Loads browser cookies,localStorage, andsessionStoragefrom a JSON file.Maximizes current window size based on screen size minus 5%mock(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) Intercepts outgoing HTTP requests matching the given predicate and replaces the actual network response with the providedHttpResponse.Navigates one step back from the browsers historyNavigates one step forward from the browsers historynavigateToURL(String targetUrl) Navigates to targetUrl in case the current URL is different, else refreshes the current pagenavigateToURL(String targetUrl, String targetUrlAfterRedirection) Navigates to targetUrl in case the current URL is different, else refreshes the current page.navigateToURL(String targetUrl, org.openqa.selenium.WindowType windowType) Navigates to the specified URL by opening it in a new browser tab or a new browser window, depending on the providedWindowType.navigateToURLWithBasicAuthentication(String targetUrl, String username, String password, String targetUrlAfterAuthentication) Navigates to targetUrl using basic authentication in case the current URL is different, else refreshes the current page.openNewTab(String targetUrl) Opens the target URL in a new browser tab and switches focus to it.openNewWindow(String targetUrl) Opens the target URL in a new browser window and switches focus to it.Attempts to refresh the current pagereplayContract(String contractFilePath) Replays recorded contract responses through the browser network interceptor.Restores default network mode and clears blocked URL patterns for DevTools-capable browsers.routeFromHar(String harFilePath) Replays recorded HAR (HTTP Archive) responses through the browser network interceptor.saveStorageState(String filePath) Saves the current browser cookies,localStorage, andsessionStorageto a JSON file.Explicitly sweeps the current page with bounded progressive scrolling (viewport-height steps, up totimeouts.lazyLoadingScrollSweepMaxSteps, default20), waiting for lazy-loading readiness between steps, to force scroll-triggered content (infinite lists, IntersectionObserver sections that only hydrate once visible) to fully load before full-page assertions or screenshots.setContext(String context) Switches focus to another contextsetWindowSize(int width, int height) Resizes the current window size based on the provided width and heightstartContractRecording(String contractFilePath, String... urlContains) Starts recording selected browser traffic into an HTTP contract.switchToWindow(String nameOrHandle) Switches focus to another windowthrottleNetwork(long latencyMs, long downloadKbps, long uploadKbps) Applies fixed latency and throughput limits for DevTools-capable browsers.typeIntoPromptAlert(String text) Types text into the current browser prompt dialog.verifyContract(String contractFilePath, String... urlContains) Starts soft-verify validation of live browser responses against an HTTP contract.Opens a soft-assertion (verification) builder scoped to the current browser state.Waits for the page to finish lazy-loading by polling JavaScript readiness conditions.Methods inherited from class FluentWebDriverAction
alert, browser, element, initialize, initialize, initialize, initialize, performAlertAction, performBrowserAction, performElementAction, performTouchAction, touch
-
Constructor Details
-
BrowserActions
public BrowserActions()Creates a newBrowserActionsinstance and initializes the underlying driver using the framework's default driver factory configuration. -
BrowserActions
public BrowserActions(org.openqa.selenium.WebDriver driver) Creates a newBrowserActionsinstance wrapping the providedWebDriver.- Parameters:
driver- theWebDriverinstance to use for browser actions
-
BrowserActions
public BrowserActions(org.openqa.selenium.WebDriver driver, boolean isSilent) Creates a newBrowserActionsinstance wrapping the providedWebDriver, with control over whether reporting output is suppressed.- Parameters:
driver- theWebDriverinstance to use for browser actionsisSilent- whentrue, step reporting is suppressed for this instance
-
BrowserActions
Creates a newBrowserActionsinstance backed by an existingDriverFactoryHelper. Use this constructor when integrating with the internal driver lifecycle management.- Parameters:
helper- theDriverFactoryHelperthat manages the underlying driver instance
-
-
Method Details
-
and
Description copied from class:FluentWebDriverActionReturns this instance to allow fluent (method-chaining) syntax between successive actions. Using.and()improves readability by making multi-step test sequences read like natural language.Example:
driver.element().type(searchBox, "query") .and().browser().captureScreenshot();- Specified by:
andin interfaceBrowserActionsContract- Overrides:
andin classFluentWebDriverAction- Returns:
- this
FluentWebDriverActioninstance, enabling continued method chaining
-
assertThat
Opens a hard-assertion builder scoped to the current browser state. Any assertion failure immediately stops the test.Example:
driver.browser().assertThat().title().contains("Dashboard");- Specified by:
assertThatin interfaceBrowserActionsContract- Returns:
- a
WebDriverBrowserValidationsBuilderfor chaining browser assertions
-
verifyThat
Opens a soft-assertion (verification) builder scoped to the current browser state. Failures are collected and reported at the end of the test rather than stopping it immediately.Example:
driver.browser().verifyThat().title().contains("Dashboard");- Specified by:
verifyThatin interfaceBrowserActionsContract- Returns:
- a
WebDriverBrowserValidationsBuilderfor chaining browser verifications
-
capturePageSnapshot
Attempts to capture a page snapshot archive in the format of a .mht file Works only for Chromium based driver instances For other driver types attempts to attach the current page source (for web) or accessibility tree (for mobile)- Specified by:
capturePageSnapshotin interfaceBrowserActionsContract- Returns:
- a self-reference to be used to chain actions
-
getCurrentURL
Gets the current page URL and returns it as a string- Specified by:
getCurrentURLin interfaceBrowserActionsContract- Returns:
- the URL that's currently open in the current page
-
getCurrentWindowTitle
Gets the current window title and returns it as a string- Specified by:
getCurrentWindowTitlein interfaceBrowserActionsContract- Returns:
- the title of the current window
-
getPageSource
Gets the current page source and returns it as a string- Specified by:
getPageSourcein interfaceBrowserActionsContract- Returns:
- the source of the current page
-
getWindowHandle
Gets the current window handle and returns it as a string- Specified by:
getWindowHandlein interfaceBrowserActionsContract- Returns:
- the window handle for the current window
-
getWindowPosition
Gets the current window position and returns it as a string- Specified by:
getWindowPositionin interfaceBrowserActionsContract- Returns:
- the position of the current window
-
getWindowSize
Gets the current window size and returns it as a string- Specified by:
getWindowSizein interfaceBrowserActionsContract- Returns:
- the size of the current window
-
getWindowHeight
Gets the current window size and returns it as a string- Specified by:
getWindowHeightin interfaceBrowserActionsContract- Returns:
- the height of the current window
-
getWindowWidth
Gets the current window size and returns it as a string- Specified by:
getWindowWidthin interfaceBrowserActionsContract- Returns:
- the width of the current window
-
openNewTab
Opens the target URL in a new browser tab and switches focus to it.- Specified by:
openNewTabin interfaceBrowserActionsContract- Parameters:
targetUrl- target URL to open- Returns:
- a self-reference to be used to chain actions
-
openNewWindow
Opens the target URL in a new browser window and switches focus to it.- Specified by:
openNewWindowin interfaceBrowserActionsContract- Parameters:
targetUrl- target URL to open- Returns:
- a self-reference to be used to chain actions
-
refreshCurrentPage
Attempts to refresh the current page- Specified by:
refreshCurrentPagein interfaceBrowserActionsContract- Returns:
- a self-reference to be used to chain actions
-
closeCurrentWindow
public void closeCurrentWindow()Closes the current browser window- Specified by:
closeCurrentWindowin interfaceBrowserActionsContract
-
maximizeWindow
Maximizes current window size based on screen size minus 5%- Specified by:
maximizeWindowin interfaceBrowserActionsContract- Returns:
- a self-reference to be used to chain actions
-
setWindowSize
Resizes the current window size based on the provided width and height- Specified by:
setWindowSizein interfaceBrowserActionsContract- Parameters:
width- the desired new width of the target windowheight- the desired new height of the target window- Returns:
- a self-reference to be used to chain actions
-
mock
@Step("Mock HTTP Request") public BrowserActions mock(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) Intercepts outgoing HTTP requests matching the given predicate and replaces the actual network response with the providedHttpResponse. Only supported for drivers that implementHasDevTools.Example:
HttpResponse mocked = new HttpResponse(); mocked.setStatus(200); driver.browser().mock(req -> req.getUri().contains("/api/user"), mocked);- Specified by:
mockin interfaceBrowserActionsContract- Parameters:
requestPredicate- aPredicatethat identifies which requests should be interceptedmockedResponse- theHttpResponseto return instead of the real network response- Returns:
- a self-reference to be used to chain actions
-
interceptRequest
Starts a fluent browser network interception builder.The configured rule is scoped to the current WebDriver session and is cleared automatically when the driver closes. Call
clearNetworkInterceptors()to remove all active rules earlier. Only drivers that implementHasDevToolssupport network interception.Example:
driver.browser() .interceptRequest() .get() .urlContains("/api/users") .respond() .statusCode(200) .jsonBody("{\"ok\":true}") .perform();- Specified by:
interceptRequestin interfaceBrowserActionsContract- Returns:
- a browser network interception request builder
-
startContractRecording
Starts recording selected browser traffic into an HTTP contract.Example:
driver.browser().startContractRecording("src/test/resources/contracts/checkout.json", "/api/checkout"); driver.browser().navigateToURL("https://shop.example/checkout"); SHAFT.Contracts.stopRecording();- Specified by:
startContractRecordingin interfaceBrowserActionsContract- Parameters:
contractFilePath- destination JSON contract pathurlContains- optional URL fragments used to select recorded traffic- Returns:
- a self-reference to be used to chain actions
-
assertContract
Starts hard-assert validation of live browser responses against an HTTP contract.- Specified by:
assertContractin interfaceBrowserActionsContract- Parameters:
contractFilePath- source JSON contract pathurlContains- optional URL fragments used to select validated traffic- Returns:
- a self-reference to be used to chain actions
-
verifyContract
Starts soft-verify validation of live browser responses against an HTTP contract.- Specified by:
verifyContractin interfaceBrowserActionsContract- Parameters:
contractFilePath- source JSON contract pathurlContains- optional URL fragments used to select validated traffic- Returns:
- a self-reference to be used to chain actions
-
replayContract
Replays recorded contract responses through the browser network interceptor.Example:
driver.browser().replayContract("src/test/resources/contracts/checkout.json"); driver.browser().navigateToURL("https://shop.example/checkout");- Specified by:
replayContractin interfaceBrowserActionsContract- Parameters:
contractFilePath- source JSON contract path- Returns:
- a self-reference to be used to chain actions
-
routeFromHar
Replays recorded HAR (HTTP Archive) responses through the browser network interceptor.Example:
driver.browser().routeFromHar("src/test/resources/har/checkout.har"); driver.browser().navigateToURL("https://shop.example/checkout");- Specified by:
routeFromHarin interfaceBrowserActionsContract- Parameters:
harFilePath- path to a HAR 1.2 JSON file- Returns:
- a self-reference to be used to chain actions
-
intercept
@Step("Intercept HTTP Request") public BrowserActions intercept(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) Intercepts outgoing HTTP requests matching the given predicate and substitutes the real network response with the providedHttpResponse. Functionally equivalent tomock(Predicate, HttpResponse)but semantically named for interception use-cases. Only supported for drivers that implementHasDevTools.Example:
HttpResponse stubbed = new HttpResponse(); stubbed.setStatus(503); driver.browser().intercept(req -> req.getUri().contains("/api/search"), stubbed);- Specified by:
interceptin interfaceBrowserActionsContract- Parameters:
requestPredicate- aPredicatethat identifies which requests should be interceptedmockedResponse- theHttpResponseto return instead of the real network response- Returns:
- a self-reference to be used to chain actions
-
clearNetworkInterceptors
Removes all browser network interception rules registered for the current WebDriver session.- Specified by:
clearNetworkInterceptorsin interfaceBrowserActionsContract- Returns:
- a self-reference to be used to chain actions
-
fullScreenWindow
Resize the window to fill the current screen- Specified by:
fullScreenWindowin interfaceBrowserActionsContract- Returns:
- a self-reference to be used to chain actions
-
switchToWindow
Switches focus to another window- Specified by:
switchToWindowin interfaceBrowserActionsContract- Parameters:
nameOrHandle- The name of the window or the handle as returned by ElementActions.getWindowHandle(WebDriver driver)- Returns:
- a self-reference to be used to chain actions
-
isAlertPresent
public boolean isAlertPresent()Checks whether a browser alert, confirm, or prompt dialog is currently present.- Specified by:
isAlertPresentin interfaceBrowserActionsContract- Returns:
truewhen an alert is present; otherwisefalse
-
acceptAlert
Accepts the current browser alert, confirm, or prompt dialog.- Specified by:
acceptAlertin interfaceBrowserActionsContract- Returns:
- a self-reference to be used to chain actions
-
dismissAlert
Dismisses the current browser alert, confirm, or prompt dialog.- Specified by:
dismissAlertin interfaceBrowserActionsContract- Returns:
- a self-reference to be used to chain actions
-
getAlertText
Gets the current browser alert, confirm, or prompt dialog text.- Specified by:
getAlertTextin interfaceBrowserActionsContract- Returns:
- the alert text
-
typeIntoPromptAlert
Types text into the current browser prompt dialog.- Specified by:
typeIntoPromptAlertin interfaceBrowserActionsContract- Parameters:
text- text to type into the prompt- Returns:
- a self-reference to be used to chain actions
-
addCookie
Adds a cookie to the current browsing context.- Specified by:
addCookiein interfaceBrowserActionsContract- Parameters:
key- The cookie's namevalue- The cookie's name- Returns:
- a self-reference to be used to chain actions
-
importCookiesFrom
Imports API session cookies into the current browser context.- Parameters:
api- the API session to read cookies from- Returns:
- a self-reference to be used to chain actions
-
importCookiesFrom
Imports matching API session cookies into the current browser context.- Parameters:
api- the API session to read cookies fromdomainFilter- optional exact cookie domain filter; passnullor blank to import every domainpathFilter- optional exact cookie path filter; passnullor blank to import every path- Returns:
- a self-reference to be used to chain actions
-
importHeaderToLocalStorage
public BrowserActions importHeaderToLocalStorage(SHAFT.API api, String headerName, String storageKey) Copies a selected API session header intolocalStorage.- Parameters:
api- the API session to read headers fromheaderName- the header name to copystorageKey- the localStorage key to write- Returns:
- a self-reference to be used to chain actions
-
saveStorageState
Saves the current browser cookies,localStorage, andsessionStorageto a JSON file.Example:
driver.browser().saveStorageState("target/auth-state.json");- Parameters:
filePath- target JSON file path- Returns:
- a self-reference to be used to chain actions
-
loadStorageState
Loads browser cookies,localStorage, andsessionStoragefrom a JSON file.Navigate to the target origin before loading storage so browser cookie domain rules can apply. Example:
driver.browser() .navigateToURL("https://example.com") .and().loadStorageState("target/auth-state.json");- Parameters:
filePath- source JSON file path- Returns:
- a self-reference to be used to chain actions
-
goOffline
Enables offline network mode for DevTools-capable browsers.Unsupported drivers keep the test running and add deterministic trace metadata. Example:
driver.browser().goOffline();- Returns:
- a self-reference to be used to chain actions
-
restoreNetwork
Restores default network mode and clears blocked URL patterns for DevTools-capable browsers.Example:
driver.browser().restoreNetwork();- Returns:
- a self-reference to be used to chain actions
-
throttleNetwork
Applies fixed latency and throughput limits for DevTools-capable browsers.Example:
driver.browser().throttleNetwork(250, 64, 32);- Parameters:
latencyMs- network latency in millisecondsdownloadKbps- download throughput in kilobits per seconduploadKbps- upload throughput in kilobits per second- Returns:
- a self-reference to be used to chain actions
-
blockNetworkResources
Blocks browser requests matching DevTools URL patterns.Example:
driver.browser().blockNetworkResources("*.png", "*.jpg");- Parameters:
urlPatterns- DevTools URL patterns to block- Returns:
- a self-reference to be used to chain actions
-
getCookie
Gets a cookie with a given name.- Specified by:
getCookiein interfaceBrowserActionsContract- Parameters:
cookieName- The cookie's name.- Returns:
- the cookie.
-
getAllCookies
Gets all cookies for the current browsing context.- Specified by:
getAllCookiesin interfaceBrowserActionsContract- Returns:
- A Set of cookies for the current browsing context.
-
getCookieDomain
Gets the cookie domain.- Specified by:
getCookieDomainin interfaceBrowserActionsContract- Parameters:
cookieName- The cookie's name.- Returns:
- te cookie domain;
-
getCookieValue
Gets the cookie value.- Specified by:
getCookieValuein interfaceBrowserActionsContract- Parameters:
cookieName- The cookie's name.- Returns:
- the cookie value;
-
getCookiePath
Gets the cookie path.- Specified by:
getCookiePathin interfaceBrowserActionsContract- Parameters:
cookieName- The cookie's name.- Returns:
- the cookie path;
-
deleteCookie
Deletes the cookie data matching with the provided cookie name for the current browsing context.- Specified by:
deleteCookiein interfaceBrowserActionsContract- Parameters:
cookieName- The name of the cookie to delete.- Returns:
- a self-reference to be used to chain actions.
-
deleteAllCookies
Deletes all the cookies of the current browsing context.- Specified by:
deleteAllCookiesin interfaceBrowserActionsContract- Returns:
- a self-reference to be used to chain actions.
-
captureScreenshot
Use this action to return a full page screenshot. This is a synonym tocaptureScreenshot(Screenshots type)if you pass `Screenshots.FULL`- Specified by:
captureScreenshotin interfaceBrowserActionsContract- Returns:
- a self-reference for chainable actions
-
captureScreenshot
Use this action to return a page screenshot. If you want to capture a screenshot then use this method instead- Specified by:
captureScreenshotin interfaceBrowserActionsContract- Parameters:
type- can either be `Screenshots.FULL`, or `Screenshots.VIEWPORT`- Returns:
- a self-reference for chainable actions
-
captureSnapshot
Use this action to return a page snapshot. A page snapshot is a single .mht file that contains the full page DOM and any related assets to help you view the page as a whole. If you want to capture a screenshot then use this method instead @see FluentBrowserActions#captureScreenshot()- Specified by:
captureSnapshotin interfaceBrowserActionsContract- Returns:
- a self-reference for chainable actions
-
generateLightHouseReport
public void generateLightHouseReport()Generates a Google Lighthouse performance report for the currently open page. The report is attached to the Allure test report for review after the test run.Example:
driver.browser().navigateToURL("https://example.com") .and().generateLightHouseReport();- Specified by:
generateLightHouseReportin interfaceBrowserActionsContract
-
waitForLazyLoading
Waits for the page to finish lazy-loading by polling JavaScript readiness conditions. Use this after actions that trigger dynamic content loading (e.g., infinite scrolling or deferred script execution).Example:
driver.browser().navigateToURL("https://example.com") .and().waitForLazyLoading();- Specified by:
waitForLazyLoadingin interfaceBrowserActionsContract- Returns:
- a self-reference to be used to chain actions
-
scrollToLoadAll
Explicitly sweeps the current page with bounded progressive scrolling (viewport-height steps, up totimeouts.lazyLoadingScrollSweepMaxSteps, default20), waiting for lazy-loading readiness between steps, to force scroll-triggered content (infinite lists, IntersectionObserver sections that only hydrate once visible) to fully load before full-page assertions or screenshots. Stops early once the page stops growing and the viewport bottom has been reached (ScrollSweepPlanner).Use this right before assertions or screenshots on pages known to lazy-load additional content on scroll -- it is never invoked automatically from any readiness wait, since sweeping the whole page is not a safe default before an arbitrary action.
Mutates scroll position while it runs: the page is scrolled down step by step, then restored to its original scroll position when the sweep finishes.
Example:
driver.browser().navigateToURL("https://example.com/infinite-list") .and().scrollToLoadAll() .and().captureScreenshot();- Specified by:
scrollToLoadAllin interfaceBrowserActionsContract- Returns:
- a self-reference to be used to chain actions
-
getContext
Returns the handle for currently active context. This can be used to switch to this context at a later time.- Specified by:
getContextin interfaceBrowserActionsContract- Returns:
- The current context handle
-
setContext
Switches focus to another context- Specified by:
setContextin interfaceBrowserActionsContract- Parameters:
context- The name of the context or the handle as returned by ElementActions.getContext(WebDriver driver)- Returns:
- a self-reference to be used to chain actions
-
getWindowHandles
Returns a list of unique handles for all the currently open windows. This can be used to switch to any of these windows at a later time.- Specified by:
getWindowHandlesin interfaceBrowserActionsContract- Returns:
- list of window handles
-
getContextHandles
Returns a list of unique handles for all the currently open contexts. This can be used to switch to any of these contexts at a later time.- Specified by:
getContextHandlesin interfaceBrowserActionsContract- Returns:
- list of context handles
-
accessibility
Provides access to accessibility testing actions for the current browser session.This method returns an
AccessibilityActionsinstance that can be used to perform automated accessibility checks and generate reports for the current page.Example usage:
AccessibilityActions actions = browserActions.accessibility(); actions.analyzePageAccessibility("HomePage");- Specified by:
accessibilityin interfaceBrowserActionsContract- Returns:
- an
AccessibilityActionsobject tied to the current browser session
-