Interface BrowserActionsContract
- All Known Implementing Classes:
BrowserActions, BrowserActions
public interface BrowserActionsContract
Public contract for browser-level SHAFT actions.
-
Method Summary
Modifier and TypeMethodDescriptionand()captureScreenshot(Screenshots type) voiddeleteCookie(String cookieName) voidSet<org.openqa.selenium.Cookie> org.openqa.selenium.CookiegetCookieDomain(String cookieName) getCookiePath(String cookieName) getCookieValue(String cookieName) intercept(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) mock(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) navigateToURL(String targetUrl) navigateToURL(String targetUrl, String targetUrlAfterRedirection) navigateToURL(String targetUrl, org.openqa.selenium.WindowType windowType) navigateToURLWithBasicAuthentication(String targetUrl, String username, String password, String targetUrlAfterAuthentication) setContext(String context) setWindowSize(int width, int height) switchToWindow(String nameOrHandle)
-
Method Details
-
and
BrowserActionsContract and() -
assertThat
BrowserAssertions assertThat() -
verifyThat
BrowserAssertions verifyThat() -
capturePageSnapshot
BrowserActionsContract capturePageSnapshot() -
getCurrentURL
String getCurrentURL() -
getCurrentWindowTitle
String getCurrentWindowTitle() -
getPageSource
String getPageSource() -
getWindowHandle
String getWindowHandle() -
getWindowPosition
String getWindowPosition() -
getWindowSize
String getWindowSize() -
getWindowHeight
String getWindowHeight() -
getWindowWidth
String getWindowWidth() -
refreshCurrentPage
BrowserActionsContract refreshCurrentPage() -
closeCurrentWindow
void closeCurrentWindow() -
maximizeWindow
BrowserActionsContract maximizeWindow() -
setWindowSize
-
mock
BrowserActionsContract mock(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) -
interceptRequest
NetworkInterceptionRequestBuilder interceptRequest() -
intercept
BrowserActionsContract intercept(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) -
clearNetworkInterceptors
BrowserActionsContract clearNetworkInterceptors() -
fullScreenWindow
BrowserActionsContract fullScreenWindow() -
switchToWindow
-
addCookie
-
getCookie
-
getAllCookies
Set<org.openqa.selenium.Cookie> getAllCookies() -
getCookieDomain
-
getCookieValue
-
getCookiePath
-
deleteCookie
-
deleteAllCookies
BrowserActionsContract deleteAllCookies() -
captureScreenshot
BrowserActionsContract captureScreenshot() -
captureScreenshot
-
captureSnapshot
BrowserActionsContract captureSnapshot() -
generateLightHouseReport
void generateLightHouseReport() -
waitForLazyLoading
BrowserActionsContract waitForLazyLoading() -
getContext
String getContext() -
setContext
-
getWindowHandles
-
getContextHandles
-
accessibility
AccessibilityActions accessibility()
-