Uses of Class
com.shaft.gui.browser.BrowserActions
-
Uses of BrowserActions in com.shaft.driver
-
Uses of BrowserActions in com.shaft.driver.internal
Modifier and TypeMethodDescriptionFluentWebDriverAction.browser()
FluentWebDriverAction.performBrowserAction()
-
Uses of BrowserActions in com.shaft.gui.browser
Modifier and TypeMethodDescriptionAdds a cookie to the current browsing context.BrowserActions.and()
BrowserActions.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)BrowserActions.captureScreenshot()
Use this action to return a full page screenshot.BrowserActions.captureScreenshot
(Screenshots type) Use this action to return a page screenshot.BrowserActions.captureSnapshot()
Use this action to return a page snapshot.BrowserActions.closeCurrentWindow()
Closes the current browser windowBrowserActions.deleteAllCookies()
Deletes all the cookies of the current browsing context.BrowserActions.deleteCookie
(String cookieName) Deletes the cookie data matching with the provided cookie name for the current browsing context.BrowserActions.fullScreenWindow()
Resize the window to fill the current screenBrowserActions.intercept
(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) BrowserActions.maximizeWindow()
Maximizes current window size based on screen size minus 5%BrowserActions.mock
(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) BrowserActions.navigateBack()
Navigates one step back from the browsers historyBrowserActions.navigateForward()
Navigates one step forward from the browsers historyBrowserActions.navigateToURL
(String targetUrl) Navigates to targetUrl in case the current URL is different, else refreshes the current pageBrowserActions.navigateToURL
(String targetUrl, String targetUrlAfterRedirection) Navigates to targetUrl in case the current URL is different, else refreshes the current page.BrowserActions.navigateToURL
(String targetUrl, org.openqa.selenium.WindowType windowType) BrowserActions.navigateToURLWithBasicAuthentication
(String targetUrl, String username, String password, String targetUrlAfterAuthentication) BrowserActions.refreshCurrentPage()
Attempts to refresh the current pageBrowserActions.setContext
(String context) Switches focus to another contextBrowserActions.setWindowSize
(int width, int height) Resizes the current window size based on the provided width and heightBrowserActions.switchToWindow
(String nameOrHandle) Switches focus to another windowBrowserActions.waitForLazyLoading()
BrowserActions.waitUntilNumberOfWindowsToBe
(int numberOfWindows) BrowserActions.waitUntilTitleContains
(String title) BrowserActions.waitUntilTitleIs
(String title) BrowserActions.waitUntilTitleNotContains
(String title) BrowserActions.waitUntilUrlContains
(String url) BrowserActions.waitUntilUrlMatches
(String urlRegex) BrowserActions.waitUntilUrlNotContains
(String url) BrowserActions.waitUntilUrlNotToBe
(String url) BrowserActions.waitUntilUrlToBe
(String url)