T - The type of the test.public class WiseTestNG<T extends WiseTestNG<T>> extends Object
| Constructor and Description |
|---|
WiseTestNG() |
| Modifier and Type | Method and Description |
|---|---|
T |
and() |
<E> E |
findElement(Class<E> arg0,
org.openqa.selenium.By arg1) |
<E> List<E> |
findElements(Class<E> arg0,
org.openqa.selenium.By arg1) |
T |
get(String arg0) |
org.openqa.selenium.WebDriver |
getDriver() |
String |
getScreenShotPath() |
String |
getUrl() |
org.openqa.selenium.WebDriver |
initDriver() |
<E> E |
initElements(Class<E> arg0) |
<E> E |
initElements(E arg0) |
protected void |
initWiseTest() |
void |
initWiseTestNG(String driver,
String url)
Prepares the test.
|
void |
quitDriver()
Quits the driver of the test.
|
T |
takeScreenShot(String arg0) |
org.openqa.selenium.support.ui.WebDriverWait |
waitFor(long arg0) |
org.openqa.selenium.support.ui.WebDriverWait |
waitFor(long arg0,
long arg1) |
public String getUrl()
public org.openqa.selenium.WebDriver initDriver()
public void initWiseTestNG(String driver, String url)
driver - The driver to be used on the test. Can be any of the Driver values.url - The url of the test.public void quitDriver()
public T and()
public <E> E findElement(Class<E> arg0, org.openqa.selenium.By arg1)
findElement in interface WiseQuerypublic <E> List<E> findElements(Class<E> arg0, org.openqa.selenium.By arg1)
findElements in interface WiseQuerypublic org.openqa.selenium.WebDriver getDriver()
public String getScreenShotPath()
public <E> E initElements(Class<E> arg0)
public <E> E initElements(E arg0)
public T takeScreenShot(String arg0)
takeScreenShot in interface ScreenShooting<T extends com.github.wiselenium.core.test.WiseTest<T>>public org.openqa.selenium.support.ui.WebDriverWait waitFor(long arg0)
waitFor in interface WiseRoot<T extends com.github.wiselenium.core.test.WiseTest<T>>public org.openqa.selenium.support.ui.WebDriverWait waitFor(long arg0,
long arg1)
waitFor in interface WiseRoot<T extends com.github.wiselenium.core.test.WiseTest<T>>protected void initWiseTest()
Copyright © 2013. All Rights Reserved.