public interface SupportsContextSwitching extends org.openqa.selenium.WebDriver, org.openqa.selenium.ContextAware, ExecutesMethod
Modifier and Type | Method and Description |
---|---|
default org.openqa.selenium.WebDriver |
context(java.lang.String name)
Switches to the given context.
|
default java.lang.String |
getContext()
Get the name of the current context.
|
default java.util.Set<java.lang.String> |
getContextHandles()
Get the names of available contexts.
|
close, findElement, findElements, get, getCurrentUrl, getPageSource, getTitle, getWindowHandle, getWindowHandles, manage, navigate, quit, switchTo
execute, execute
default org.openqa.selenium.WebDriver context(java.lang.String name)
context
in interface org.openqa.selenium.ContextAware
name
- The name of the context to switch to.default java.util.Set<java.lang.String> getContextHandles()
getContextHandles
in interface org.openqa.selenium.ContextAware
@Nullable default java.lang.String getContext()
getContext
in interface org.openqa.selenium.ContextAware