Class BrowsingContext
java.lang.Object
org.openqa.selenium.bidi.browsingcontext.BrowsingContext
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBrowsingContext
(WebDriver driver, String id) BrowsingContext
(WebDriver driver, CreateContextParameters parameters) BrowsingContext
(WebDriver driver, WindowType type) BrowsingContext
(WebDriver driver, WindowType type, String referenceContextId) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
void
back()
captureBoxScreenshot
(double x, double y, double width, double height) captureElementScreenshot
(String elementId) captureElementScreenshot
(String elementId, String handle) captureScreenshot
(CaptureScreenshotParameters parameters) void
close()
void
forward()
getId()
getTree()
getTree
(int maxDepth) void
void
handleUserPrompt
(boolean accept) void
handleUserPrompt
(boolean accept, String userText) void
handleUserPrompt
(String userText) locateNode
(Locator locator) locateNodes
(LocateNodeParameters parameters) locateNodes
(Locator locator) navigate
(String url, ReadinessState readinessState) print
(PrintOptions printOptions) reload()
reload
(ReadinessState readinessState) void
setViewport
(double width, double height) void
setViewport
(double width, double height, double devicePixelRatio) void
traverseHistory
(long delta)
-
Field Details
-
LIST_OF_BROWSING_CONTEXT_INFO
-
-
Constructor Details
-
BrowsingContext
-
BrowsingContext
-
BrowsingContext
Deprecated. -
BrowsingContext
-
-
Method Details
-
getId
-
getTree
-
getTree
-
getTopLevelContexts
-
reload
-
reload
-
handleUserPrompt
public void handleUserPrompt() -
handleUserPrompt
public void handleUserPrompt(boolean accept) -
handleUserPrompt
-
handleUserPrompt
-
captureScreenshot
-
captureScreenshot
-
captureBoxScreenshot
-
captureElementScreenshot
-
captureElementScreenshot
-
setViewport
public void setViewport(double width, double height) -
setViewport
public void setViewport(double width, double height, double devicePixelRatio) -
activate
public void activate() -
print
-
traverseHistory
public void traverseHistory(long delta) -
back
public void back() -
forward
public void forward() -
locateNodes
-
locateNodes
-
locateNode
-
close
public void close()
-