Class WrappedElementStub
java.lang.Object
net.thucydides.core.webdriver.stubs.WrappedElementStub
- All Implemented Interfaces:
org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement
public class WrappedElementStub
extends java.lang.Object
implements org.openqa.selenium.WebElement
-
Constructor Summary
Constructors Constructor Description WrappedElementStub() -
Method Summary
Modifier and Type Method Description voidclear()voidclick()org.openqa.selenium.WebElementfindElement(org.openqa.selenium.By by)java.util.List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.By by)java.lang.StringgetAttribute(java.lang.String s)java.lang.StringgetCssValue(java.lang.String s)org.openqa.selenium.PointgetLocation()org.openqa.selenium.RectanglegetRect()<X> XgetScreenshotAs(org.openqa.selenium.OutputType<X> target)org.openqa.selenium.DimensiongetSize()java.lang.StringgetTagName()java.lang.StringgetText()booleanisDisplayed()booleanisEnabled()booleanisSelected()voidsendKeys(java.lang.CharSequence... charSequences)voidsubmit()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
WrappedElementStub
public WrappedElementStub()
-
-
Method Details
-
click
public void click()- Specified by:
clickin interfaceorg.openqa.selenium.WebElement
-
submit
public void submit()- Specified by:
submitin interfaceorg.openqa.selenium.WebElement
-
sendKeys
public void sendKeys(java.lang.CharSequence... charSequences)- Specified by:
sendKeysin interfaceorg.openqa.selenium.WebElement
-
clear
public void clear()- Specified by:
clearin interfaceorg.openqa.selenium.WebElement
-
getTagName
public java.lang.String getTagName()- Specified by:
getTagNamein interfaceorg.openqa.selenium.WebElement
-
getAttribute
public java.lang.String getAttribute(java.lang.String s)- Specified by:
getAttributein interfaceorg.openqa.selenium.WebElement
-
isSelected
public boolean isSelected()- Specified by:
isSelectedin interfaceorg.openqa.selenium.WebElement
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceorg.openqa.selenium.WebElement
-
getText
public java.lang.String getText()- Specified by:
getTextin interfaceorg.openqa.selenium.WebElement
-
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.WebElement
-
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.WebElement
-
isDisplayed
public boolean isDisplayed()- Specified by:
isDisplayedin interfaceorg.openqa.selenium.WebElement
-
getLocation
public org.openqa.selenium.Point getLocation()- Specified by:
getLocationin interfaceorg.openqa.selenium.WebElement
-
getSize
public org.openqa.selenium.Dimension getSize()- Specified by:
getSizein interfaceorg.openqa.selenium.WebElement
-
getRect
public org.openqa.selenium.Rectangle getRect()- Specified by:
getRectin interfaceorg.openqa.selenium.WebElement
-
getCssValue
public java.lang.String getCssValue(java.lang.String s)- Specified by:
getCssValuein interfaceorg.openqa.selenium.WebElement
-
getScreenshotAs
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target) throws org.openqa.selenium.WebDriverException- Specified by:
getScreenshotAsin interfaceorg.openqa.selenium.TakesScreenshot- Throws:
org.openqa.selenium.WebDriverException
-