Package io.webdevice.device
Class WebDriverForTest
java.lang.Object
io.webdevice.device.WebDriverForTest
- All Implemented Interfaces:
org.openqa.selenium.HasCapabilities,org.openqa.selenium.SearchContext,org.openqa.selenium.WebDriver
public class WebDriverForTest
extends java.lang.Object
implements org.openqa.selenium.WebDriver, org.openqa.selenium.HasCapabilities
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver
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 Summary
Constructors Constructor Description WebDriverForTest()WebDriverForTest(org.openqa.selenium.Capabilities capabilities) -
Method Summary
Modifier and Type Method Description voidclose()org.openqa.selenium.WebElementfindElement(org.openqa.selenium.By by)java.util.List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.By by)voidget(java.lang.String url)org.openqa.selenium.CapabilitiesgetCapabilities()java.lang.StringgetCurrentUrl()java.lang.StringgetPageSource()java.lang.StringgetTitle()java.lang.StringgetWindowHandle()java.util.Set<java.lang.String>getWindowHandles()org.openqa.selenium.WebDriver.Optionsmanage()org.openqa.selenium.WebDriver.Navigationnavigate()voidquit()org.openqa.selenium.WebDriver.TargetLocatorswitchTo()
-
Constructor Details
-
WebDriverForTest
public WebDriverForTest(org.openqa.selenium.Capabilities capabilities) -
WebDriverForTest
public WebDriverForTest()
-
-
Method Details
-
getCapabilities
public org.openqa.selenium.Capabilities getCapabilities()- Specified by:
getCapabilitiesin interfaceorg.openqa.selenium.HasCapabilities
-
get
public void get(java.lang.String url)- Specified by:
getin interfaceorg.openqa.selenium.WebDriver
-
getCurrentUrl
public java.lang.String getCurrentUrl()- Specified by:
getCurrentUrlin interfaceorg.openqa.selenium.WebDriver
-
getTitle
public java.lang.String getTitle()- Specified by:
getTitlein interfaceorg.openqa.selenium.WebDriver
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)- Specified by:
findElementsin interfaceorg.openqa.selenium.SearchContext- Specified by:
findElementsin interfaceorg.openqa.selenium.WebDriver
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)- Specified by:
findElementin interfaceorg.openqa.selenium.SearchContext- Specified by:
findElementin interfaceorg.openqa.selenium.WebDriver
-
getPageSource
public java.lang.String getPageSource()- Specified by:
getPageSourcein interfaceorg.openqa.selenium.WebDriver
-
close
public void close()- Specified by:
closein interfaceorg.openqa.selenium.WebDriver
-
quit
public void quit()- Specified by:
quitin interfaceorg.openqa.selenium.WebDriver
-
getWindowHandles
public java.util.Set<java.lang.String> getWindowHandles()- Specified by:
getWindowHandlesin interfaceorg.openqa.selenium.WebDriver
-
getWindowHandle
public java.lang.String getWindowHandle()- Specified by:
getWindowHandlein interfaceorg.openqa.selenium.WebDriver
-
switchTo
public org.openqa.selenium.WebDriver.TargetLocator switchTo()- Specified by:
switchToin interfaceorg.openqa.selenium.WebDriver
-
navigate
public org.openqa.selenium.WebDriver.Navigation navigate()- Specified by:
navigatein interfaceorg.openqa.selenium.WebDriver
-
manage
public org.openqa.selenium.WebDriver.Options manage()- Specified by:
managein interfaceorg.openqa.selenium.WebDriver
-