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 Object implements org.openqa.selenium.WebElement
-
-
Constructor Summary
Constructors Constructor Description WrappedElementStub()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
click()
org.openqa.selenium.WebElement
findElement(org.openqa.selenium.By by)
List<org.openqa.selenium.WebElement>
findElements(org.openqa.selenium.By by)
String
getAttribute(String s)
String
getCssValue(String s)
org.openqa.selenium.Point
getLocation()
org.openqa.selenium.Rectangle
getRect()
<X> X
getScreenshotAs(org.openqa.selenium.OutputType<X> target)
org.openqa.selenium.Dimension
getSize()
String
getTagName()
String
getText()
boolean
isDisplayed()
boolean
isEnabled()
boolean
isSelected()
void
sendKeys(CharSequence... charSequences)
void
submit()
-
-
-
Method Detail
-
click
public void click()
- Specified by:
click
in interfaceorg.openqa.selenium.WebElement
-
submit
public void submit()
- Specified by:
submit
in interfaceorg.openqa.selenium.WebElement
-
sendKeys
public void sendKeys(CharSequence... charSequences)
- Specified by:
sendKeys
in interfaceorg.openqa.selenium.WebElement
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.openqa.selenium.WebElement
-
getTagName
public String getTagName()
- Specified by:
getTagName
in interfaceorg.openqa.selenium.WebElement
-
getAttribute
public String getAttribute(String s)
- Specified by:
getAttribute
in interfaceorg.openqa.selenium.WebElement
-
isSelected
public boolean isSelected()
- Specified by:
isSelected
in interfaceorg.openqa.selenium.WebElement
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceorg.openqa.selenium.WebElement
-
getText
public String getText()
- Specified by:
getText
in interfaceorg.openqa.selenium.WebElement
-
findElements
public 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.WebElement
-
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.WebElement
-
isDisplayed
public boolean isDisplayed()
- Specified by:
isDisplayed
in interfaceorg.openqa.selenium.WebElement
-
getLocation
public org.openqa.selenium.Point getLocation()
- Specified by:
getLocation
in interfaceorg.openqa.selenium.WebElement
-
getSize
public org.openqa.selenium.Dimension getSize()
- Specified by:
getSize
in interfaceorg.openqa.selenium.WebElement
-
getRect
public org.openqa.selenium.Rectangle getRect()
- Specified by:
getRect
in interfaceorg.openqa.selenium.WebElement
-
getCssValue
public String getCssValue(String s)
- Specified by:
getCssValue
in interfaceorg.openqa.selenium.WebElement
-
getScreenshotAs
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target) throws org.openqa.selenium.WebDriverException
- Specified by:
getScreenshotAs
in interfaceorg.openqa.selenium.TakesScreenshot
- Throws:
org.openqa.selenium.WebDriverException
-
-