public class GaleniumContext extends Object
Constructor and Description |
---|
GaleniumContext() |
Modifier and Type | Method and Description |
---|---|
static Object |
get(String key)
Get a custom object for the current thread.
|
static GaleniumContext |
getContext()
getContext.
|
static org.openqa.selenium.WebDriver |
getDriver()
Getter for the field
driver . |
static Object |
put(String key,
Object customObject)
Store any object in the current threads context.
|
void |
setDriver(org.openqa.selenium.WebDriver driver)
WebDriver to use for all things Galenium.
|
public void setDriver(org.openqa.selenium.WebDriver driver)
driver
- WebDriver to use for everythingpublic static Object get(String key)
key
- used for retrieving custom objectpublic static GaleniumContext getContext()
getContext.
GaleniumContext
object for this threadpublic static org.openqa.selenium.WebDriver getDriver()
Getter for the field driver
.
public static Object put(String key, Object customObject)
key
- used to store and retrieve objectcustomObject
- custom objectCopyright © 2017–2022 wcm.io QA. All rights reserved.