Class TargetLocatorStub
java.lang.Object
net.thucydides.core.webdriver.stubs.TargetLocatorStub
- All Implemented Interfaces:
org.openqa.selenium.WebDriver.TargetLocator
public class TargetLocatorStub
extends java.lang.Object
implements org.openqa.selenium.WebDriver.TargetLocator
-
Constructor Summary
Constructors Constructor Description TargetLocatorStub(org.openqa.selenium.WebDriver webDriver)
-
Method Summary
Modifier and Type Method Description org.openqa.selenium.WebElement
activeElement()
org.openqa.selenium.Alert
alert()
org.openqa.selenium.WebDriver
defaultContent()
org.openqa.selenium.WebDriver
frame(int index)
org.openqa.selenium.WebDriver
frame(java.lang.String nameOrId)
org.openqa.selenium.WebDriver
frame(org.openqa.selenium.WebElement frameElement)
org.openqa.selenium.WebDriver
parentFrame()
org.openqa.selenium.WebDriver
window(java.lang.String nameOrHandle)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TargetLocatorStub
public TargetLocatorStub(org.openqa.selenium.WebDriver webDriver)
-
-
Method Details
-
frame
public org.openqa.selenium.WebDriver frame(int index)- Specified by:
frame
in interfaceorg.openqa.selenium.WebDriver.TargetLocator
-
frame
public org.openqa.selenium.WebDriver frame(java.lang.String nameOrId)- Specified by:
frame
in interfaceorg.openqa.selenium.WebDriver.TargetLocator
-
frame
public org.openqa.selenium.WebDriver frame(org.openqa.selenium.WebElement frameElement)- Specified by:
frame
in interfaceorg.openqa.selenium.WebDriver.TargetLocator
-
parentFrame
public org.openqa.selenium.WebDriver parentFrame()- Specified by:
parentFrame
in interfaceorg.openqa.selenium.WebDriver.TargetLocator
-
window
public org.openqa.selenium.WebDriver window(java.lang.String nameOrHandle)- Specified by:
window
in interfaceorg.openqa.selenium.WebDriver.TargetLocator
-
defaultContent
public org.openqa.selenium.WebDriver defaultContent()- Specified by:
defaultContent
in interfaceorg.openqa.selenium.WebDriver.TargetLocator
-
activeElement
public org.openqa.selenium.WebElement activeElement()- Specified by:
activeElement
in interfaceorg.openqa.selenium.WebDriver.TargetLocator
-
alert
public org.openqa.selenium.Alert alert()- Specified by:
alert
in interfaceorg.openqa.selenium.WebDriver.TargetLocator
-