Class WebDriverStub
java.lang.Object
net.thucydides.core.webdriver.stubs.WebDriverStub
- All Implemented Interfaces:
org.openqa.selenium.SearchContext
,org.openqa.selenium.WebDriver
- Direct Known Subclasses:
AndroidWebDriverStub
,IOSWebDriverStub
public class WebDriverStub
extends java.lang.Object
implements org.openqa.selenium.WebDriver
-
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 WebDriverStub()
-
Method Summary
Modifier and Type Method Description void
close()
org.openqa.selenium.WebElement
findElement(org.openqa.selenium.By by)
java.util.List<org.openqa.selenium.WebElement>
findElements(org.openqa.selenium.By by)
void
get(java.lang.String s)
java.lang.String
getCurrentUrl()
java.lang.String
getPageSource()
java.lang.String
getTitle()
java.lang.String
getWindowHandle()
java.util.Set<java.lang.String>
getWindowHandles()
org.openqa.selenium.WebDriver.Options
manage()
org.openqa.selenium.WebDriver.Navigation
navigate()
void
quit()
org.openqa.selenium.WebDriver.TargetLocator
switchTo()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
WebDriverStub
public WebDriverStub()
-
-
Method Details
-
get
public void get(java.lang.String s)- Specified by:
get
in interfaceorg.openqa.selenium.WebDriver
-
getCurrentUrl
public java.lang.String getCurrentUrl()- Specified by:
getCurrentUrl
in interfaceorg.openqa.selenium.WebDriver
-
getTitle
public java.lang.String getTitle()- Specified by:
getTitle
in interfaceorg.openqa.selenium.WebDriver
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)- Specified by:
findElements
in interfaceorg.openqa.selenium.SearchContext
- Specified by:
findElements
in interfaceorg.openqa.selenium.WebDriver
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)- Specified by:
findElement
in interfaceorg.openqa.selenium.SearchContext
- Specified by:
findElement
in interfaceorg.openqa.selenium.WebDriver
-
getPageSource
public java.lang.String getPageSource()- Specified by:
getPageSource
in interfaceorg.openqa.selenium.WebDriver
-
close
public void close()- Specified by:
close
in interfaceorg.openqa.selenium.WebDriver
-
quit
public void quit()- Specified by:
quit
in interfaceorg.openqa.selenium.WebDriver
-
getWindowHandles
public java.util.Set<java.lang.String> getWindowHandles()- Specified by:
getWindowHandles
in interfaceorg.openqa.selenium.WebDriver
-
getWindowHandle
public java.lang.String getWindowHandle()- Specified by:
getWindowHandle
in interfaceorg.openqa.selenium.WebDriver
-
switchTo
public org.openqa.selenium.WebDriver.TargetLocator switchTo()- Specified by:
switchTo
in interfaceorg.openqa.selenium.WebDriver
-
manage
public org.openqa.selenium.WebDriver.Options manage()- Specified by:
manage
in interfaceorg.openqa.selenium.WebDriver
-