Class BrowsingContext
java.lang.Object
org.openqa.selenium.bidi.browsingcontext.BrowsingContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBrowsingContext(org.openqa.selenium.WebDriver driver, String id) BrowsingContext(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WindowType type) BrowsingContext(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WindowType type, String referenceContextId) -
Method Summary
Modifier and TypeMethodDescriptioncaptureBoxScreenshot(double x, double y, double width, double height) captureElementScreenshot(String elementId) captureElementScreenshot(String elementId, boolean scrollIntoView) voidclose()getId()getTree()getTree(int maxDepth) voidvoidhandleUserPrompt(boolean accept) voidhandleUserPrompt(boolean accept, String userText) voidhandleUserPrompt(String userText) navigate(String url, ReadinessState readinessState) reload()reload(ReadinessState readinessState)
-
Field Details
-
LIST_OF_BROWSING_CONTEXT_INFO
-
-
Constructor Details
-
BrowsingContext
-
BrowsingContext
public BrowsingContext(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WindowType type) -
BrowsingContext
public BrowsingContext(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WindowType type, String referenceContextId)
-
-
Method Details
-
getId
-
getTree
-
getTree
-
getTopLevelContexts
-
reload
-
reload
-
handleUserPrompt
public void handleUserPrompt() -
handleUserPrompt
public void handleUserPrompt(boolean accept) -
handleUserPrompt
-
handleUserPrompt
-
captureScreenshot
-
captureBoxScreenshot
-
captureElementScreenshot
-
captureElementScreenshot
-
close
public void close()
-