public interface ContextAware
Modifier and Type | Method and Description |
---|---|
WebDriver |
context(java.lang.String name)
Switch the focus of future commands for this driver to the context with the given name.
|
java.lang.String |
getContext()
Return an opaque handle to this context that uniquely identifies it within this driver
instance.
|
java.util.Set<java.lang.String> |
getContextHandles()
Return a set of context handles which can be used to iterate over all contexts of this
WebDriver instance.
|
WebDriver context(java.lang.String name)
name
- The name of the context as returned by getContextHandles()
.NoSuchContextException
- If the context cannot be found.java.util.Set<java.lang.String> getContextHandles()
java.lang.String getContext()