Class BrowsingContext

java.lang.Object
org.openqa.selenium.bidi.browsingcontext.BrowsingContext

public class BrowsingContext extends Object
  • Field Details

    • LIST_OF_BROWSING_CONTEXT_INFO

      protected static final Type LIST_OF_BROWSING_CONTEXT_INFO
  • Constructor Details

    • BrowsingContext

      public BrowsingContext(org.openqa.selenium.WebDriver driver, String id)
    • 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

      public String getId()
    • getTree

      public List<BrowsingContextInfo> getTree()
    • getTree

      public List<BrowsingContextInfo> getTree(int maxDepth)
    • getTopLevelContexts

      public List<BrowsingContextInfo> getTopLevelContexts()
    • reload

      public NavigationResult reload()
    • reload

      public NavigationResult reload(ReadinessState readinessState)
    • handleUserPrompt

      public void handleUserPrompt()
    • handleUserPrompt

      public void handleUserPrompt(boolean accept)
    • handleUserPrompt

      public void handleUserPrompt(String userText)
    • handleUserPrompt

      public void handleUserPrompt(boolean accept, String userText)
    • captureScreenshot

      public String captureScreenshot()
    • captureBoxScreenshot

      public String captureBoxScreenshot(double x, double y, double width, double height)
    • captureElementScreenshot

      public String captureElementScreenshot(String elementId)
    • captureElementScreenshot

      public String captureElementScreenshot(String elementId, boolean scrollIntoView)
    • setViewport

      public void setViewport(double width, double height)
    • setViewport

      public void setViewport(double width, double height, double devicePixelRatio)
    • activate

      public void activate()
    • print

      public String print(org.openqa.selenium.print.PrintOptions printOptions)
    • close

      public void close()