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