public class ThreadLocalWebDriver extends Object implements org.openqa.selenium.WebDriver, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.interactions.HasInputDevices, org.openqa.selenium.TakesScreenshot
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window| Constructor and Description |
|---|
ThreadLocalWebDriver(Class clazz) |
ThreadLocalWebDriver(Class clazz,
String testDescription) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
executeAsyncScript(String s,
Object... objects) |
Object |
executeScript(String s,
Object... objects) |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
void |
get(String s) |
Browser |
getBrowser() |
String |
getCurrentUrl() |
String |
getJobId() |
String |
getJobUrl() |
org.openqa.selenium.interactions.Keyboard |
getKeyboard() |
org.openqa.selenium.interactions.Mouse |
getMouse() |
String |
getPageSource() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
String |
getSessionId() |
String |
getTitle() |
String |
getWindowHandle() |
Set<String> |
getWindowHandles() |
boolean |
instanceOf(Class clazz) |
boolean |
isRemote() |
org.openqa.selenium.WebDriver.Options |
manage() |
org.openqa.selenium.WebDriver.Navigation |
navigate() |
void |
quit() |
org.openqa.selenium.WebDriver.TargetLocator |
switchTo() |
public ThreadLocalWebDriver(Class clazz)
public String getJobUrl()
public String getJobId()
public boolean instanceOf(Class clazz)
public boolean isRemote()
public Browser getBrowser()
public String getSessionId()
public void get(String s)
get in interface org.openqa.selenium.WebDriverpublic String getCurrentUrl()
getCurrentUrl in interface org.openqa.selenium.WebDriverpublic String getTitle()
getTitle in interface org.openqa.selenium.WebDriverpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebDriverpublic String getPageSource()
getPageSource in interface org.openqa.selenium.WebDriverpublic void close()
close in interface org.openqa.selenium.WebDriverpublic void quit()
quit in interface org.openqa.selenium.WebDriverpublic Set<String> getWindowHandles()
getWindowHandles in interface org.openqa.selenium.WebDriverpublic String getWindowHandle()
getWindowHandle in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebDriver.TargetLocator switchTo()
switchTo in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebDriver.Navigation navigate()
navigate in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebDriver.Options manage()
manage in interface org.openqa.selenium.WebDriverpublic Object executeScript(String s, Object... objects)
executeScript in interface org.openqa.selenium.JavascriptExecutorpublic Object executeAsyncScript(String s, Object... objects)
executeAsyncScript in interface org.openqa.selenium.JavascriptExecutorpublic org.openqa.selenium.interactions.Keyboard getKeyboard()
getKeyboard in interface org.openqa.selenium.interactions.HasInputDevicespublic org.openqa.selenium.interactions.Mouse getMouse()
getMouse in interface org.openqa.selenium.interactions.HasInputDevicespublic <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
throws org.openqa.selenium.WebDriverException
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotorg.openqa.selenium.WebDriverExceptionCopyright © 2015 Dev9, LLC.. All rights reserved.