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

      @Deprecated public BrowsingContext(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WindowType type, String referenceContextId)
      Deprecated.
    • BrowsingContext

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

      public String captureScreenshot(CaptureScreenshotParameters parameters)
    • captureBoxScreenshot

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

      public String captureElementScreenshot(String elementId)
    • captureElementScreenshot

      public String captureElementScreenshot(String elementId, String handle)
    • 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)
    • traverseHistory

      public void traverseHistory(long delta)
    • back

      public void back()
    • forward

      public void forward()
    • locateNodes

      public List<RemoteValue> locateNodes(LocateNodeParameters parameters)
    • locateNodes

      public List<RemoteValue> locateNodes(Locator locator)
    • locateNode

      public RemoteValue locateNode(Locator locator)
    • locateElement

      public org.openqa.selenium.WebElement locateElement(Locator locator)
    • close

      public void close()