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 TypeMethodDescriptionvoidactivate()captureBoxScreenshot(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) print(org.openqa.selenium.print.PrintOptions printOptions) reload()reload(ReadinessState readinessState) voidsetViewport(double width, double height) voidsetViewport(double width, double height, double devicePixelRatio)
-
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
-
setViewport
public void setViewport(double width, double height) -
setViewport
public void setViewport(double width, double height, double devicePixelRatio) -
activate
public void activate() -
print
-
close
public void close()
-