public class SeleniumTestContext extends Object
The test context is responsible for providing essential objects for Selenium tests
Copyright 2017 (C) by Martin Ganserer
| Constructor and Description |
|---|
SeleniumTestContext(org.openqa.selenium.WebDriver driver,
ITestDataProvider dataProvider,
SeleniumTestProperties properties)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSecurityContextToBaseURL(String securityContextName)
Append the base URL with the name of the context that contains protected resources
|
void |
delayTest(int millis)
Causes the currently running thread to sleep
|
String |
getBaseURL() |
ITestDataProvider |
getDataProvider() |
org.openqa.selenium.WebDriver |
getDriver() |
SeleniumTestProperties |
getProperties() |
boolean |
isCloseDriver() |
void |
removeSecurityContextFromBaseURL(String securityContextName)
Remove the name of the security context from the base URL
|
void |
setCloseDriver(boolean closeDriver) |
public SeleniumTestContext(org.openqa.selenium.WebDriver driver,
ITestDataProvider dataProvider,
SeleniumTestProperties properties)
driver - dataProvider - properties - public org.openqa.selenium.WebDriver getDriver()
public ITestDataProvider getDataProvider()
public String getBaseURL()
public boolean isCloseDriver()
public void setCloseDriver(boolean closeDriver)
closeDriver - public SeleniumTestProperties getProperties()
public void addSecurityContextToBaseURL(String securityContextName)
securityContextName - public void removeSecurityContextFromBaseURL(String securityContextName)
securityContextName - public void delayTest(int millis)
millis - the length of time to sleep in millisecondsIllegalArgumentException - if the value of millis is negativeCopyright © 2019. All rights reserved.