Class BrowserActions
java.lang.Object
com.shaft.gui.playwright.browser.BrowserActions
- All Implemented Interfaces:
BrowserActionsContract
-
Constructor Summary
Constructors -
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) com.microsoft.playwright.BrowserContextcom.microsoft.playwright.Pageintercept(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) com.microsoft.playwright.Locatormock(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)
-
Constructor Details
-
BrowserActions
-
-
Method Details
-
and
- Specified by:
andin interfaceBrowserActionsContract
-
assertThat
- Specified by:
assertThatin interfaceBrowserActionsContract
-
verifyThat
- Specified by:
verifyThatin interfaceBrowserActionsContract
-
capturePageSnapshot
- Specified by:
capturePageSnapshotin interfaceBrowserActionsContract
-
getCurrentURL
- Specified by:
getCurrentURLin interfaceBrowserActionsContract
-
getCurrentWindowTitle
- Specified by:
getCurrentWindowTitlein interfaceBrowserActionsContract
-
getPageSource
- Specified by:
getPageSourcein interfaceBrowserActionsContract
-
getWindowHandle
- Specified by:
getWindowHandlein interfaceBrowserActionsContract
-
getWindowPosition
- Specified by:
getWindowPositionin interfaceBrowserActionsContract
-
getWindowSize
- Specified by:
getWindowSizein interfaceBrowserActionsContract
-
getWindowHeight
- Specified by:
getWindowHeightin interfaceBrowserActionsContract
-
getWindowWidth
- Specified by:
getWindowWidthin interfaceBrowserActionsContract
-
refreshCurrentPage
- Specified by:
refreshCurrentPagein interfaceBrowserActionsContract
-
closeCurrentWindow
public void closeCurrentWindow()- Specified by:
closeCurrentWindowin interfaceBrowserActionsContract
-
maximizeWindow
- Specified by:
maximizeWindowin interfaceBrowserActionsContract
-
setWindowSize
- Specified by:
setWindowSizein interfaceBrowserActionsContract
-
mock
public BrowserActions mock(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) - Specified by:
mockin interfaceBrowserActionsContract
-
interceptRequest
- Specified by:
interceptRequestin interfaceBrowserActionsContract
-
intercept
public BrowserActions intercept(Predicate<org.openqa.selenium.remote.http.HttpRequest> requestPredicate, org.openqa.selenium.remote.http.HttpResponse mockedResponse) - Specified by:
interceptin interfaceBrowserActionsContract
-
clearNetworkInterceptors
- Specified by:
clearNetworkInterceptorsin interfaceBrowserActionsContract
-
fullScreenWindow
- Specified by:
fullScreenWindowin interfaceBrowserActionsContract
-
switchToWindow
- Specified by:
switchToWindowin interfaceBrowserActionsContract
-
addCookie
- Specified by:
addCookiein interfaceBrowserActionsContract
-
getCookie
- Specified by:
getCookiein interfaceBrowserActionsContract
-
getAllCookies
- Specified by:
getAllCookiesin interfaceBrowserActionsContract
-
getCookieDomain
- Specified by:
getCookieDomainin interfaceBrowserActionsContract
-
getCookieValue
- Specified by:
getCookieValuein interfaceBrowserActionsContract
-
getCookiePath
- Specified by:
getCookiePathin interfaceBrowserActionsContract
-
deleteCookie
- Specified by:
deleteCookiein interfaceBrowserActionsContract
-
deleteAllCookies
- Specified by:
deleteAllCookiesin interfaceBrowserActionsContract
-
captureScreenshot
- Specified by:
captureScreenshotin interfaceBrowserActionsContract
-
captureScreenshot
- Specified by:
captureScreenshotin interfaceBrowserActionsContract
-
captureSnapshot
- Specified by:
captureSnapshotin interfaceBrowserActionsContract
-
generateLightHouseReport
public void generateLightHouseReport()- Specified by:
generateLightHouseReportin interfaceBrowserActionsContract
-
waitForLazyLoading
- Specified by:
waitForLazyLoadingin interfaceBrowserActionsContract
-
getContext
- Specified by:
getContextin interfaceBrowserActionsContract
-
setContext
- Specified by:
setContextin interfaceBrowserActionsContract
-
getWindowHandles
- Specified by:
getWindowHandlesin interfaceBrowserActionsContract
-
getContextHandles
- Specified by:
getContextHandlesin interfaceBrowserActionsContract
-
accessibility
- Specified by:
accessibilityin interfaceBrowserActionsContract
-
getNativeContext
public com.microsoft.playwright.BrowserContext getNativeContext() -
getNativePage
public com.microsoft.playwright.Page getNativePage() -
locator
-