Class BrowsingContext
- java.lang.Object
-
- org.openqa.selenium.bidi.browsingcontext.BrowsingContext
-
public class BrowsingContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.reflect.Type
LIST_OF_BROWSING_CONTEXT_INFO
-
Constructor Summary
Constructors Constructor Description BrowsingContext(org.openqa.selenium.WebDriver driver, java.lang.String id)
BrowsingContext(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WindowType type)
BrowsingContext(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WindowType type, java.lang.String referenceContextId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.String
getId()
java.util.List<BrowsingContextInfo>
getTopLevelContexts()
java.util.List<BrowsingContextInfo>
getTree()
java.util.List<BrowsingContextInfo>
getTree(int maxDepth)
NavigationResult
navigate(java.lang.String url)
NavigationResult
navigate(java.lang.String url, ReadinessState readinessState)
-
-
-
Constructor Detail
-
BrowsingContext
public BrowsingContext(org.openqa.selenium.WebDriver driver, java.lang.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, java.lang.String referenceContextId)
-
-
Method Detail
-
getId
public java.lang.String getId()
-
navigate
public NavigationResult navigate(java.lang.String url)
-
navigate
public NavigationResult navigate(java.lang.String url, ReadinessState readinessState)
-
getTree
public java.util.List<BrowsingContextInfo> getTree()
-
getTree
public java.util.List<BrowsingContextInfo> getTree(int maxDepth)
-
getTopLevelContexts
public java.util.List<BrowsingContextInfo> getTopLevelContexts()
-
close
public void close()
-
-