public class HtmlUnitWebElement extends Object implements org.openqa.selenium.WrapsDriver, org.openqa.selenium.WebElement, org.openqa.selenium.interactions.Coordinates, org.openqa.selenium.interactions.Locatable
| Constructor and Description |
|---|
HtmlUnitWebElement(HtmlUnitDriver driver,
int id,
DomElement element) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertElementNotStale() |
void |
clear() |
void |
click() |
boolean |
equals(Object obj) |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
String |
getAttribute(String name) |
Object |
getAuxiliary() |
org.openqa.selenium.interactions.Coordinates |
getCoordinates() |
String |
getCssValue(String propertyName) |
String |
getDomAttribute(String name) |
String |
getDomProperty(String name) |
protected HtmlUnitDriver |
getDriver() |
DomElement |
getElement() |
List<org.openqa.selenium.WebElement> |
getElementsByTagName(String tagName)
Deprecated.
|
int |
getId() |
org.openqa.selenium.Point |
getLocation() |
org.openqa.selenium.Rectangle |
getRect() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> outputType) |
org.openqa.selenium.Dimension |
getSize() |
String |
getTagName() |
String |
getText() |
org.openqa.selenium.WebDriver |
getWrappedDriver() |
int |
hashCode() |
org.openqa.selenium.Point |
inViewPort() |
boolean |
isDisplayed() |
boolean |
isEnabled() |
boolean |
isSelected() |
org.openqa.selenium.Point |
onPage() |
org.openqa.selenium.Point |
onScreen() |
void |
sendKeys(CharSequence... value) |
void |
submit() |
String |
toString() |
public HtmlUnitWebElement(HtmlUnitDriver driver, int id, DomElement element)
public void click()
click in interface org.openqa.selenium.WebElementpublic void submit()
submit in interface org.openqa.selenium.WebElementpublic void clear()
clear in interface org.openqa.selenium.WebElementpublic void sendKeys(CharSequence... value)
sendKeys in interface org.openqa.selenium.WebElementpublic String getTagName()
getTagName in interface org.openqa.selenium.WebElementpublic String getAttribute(String name)
getAttribute in interface org.openqa.selenium.WebElementpublic String getDomProperty(String name)
getDomProperty in interface org.openqa.selenium.WebElementpublic String getDomAttribute(String name)
getDomAttribute in interface org.openqa.selenium.WebElementpublic boolean isSelected()
isSelected in interface org.openqa.selenium.WebElementpublic boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementpublic boolean isDisplayed()
isDisplayed in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Point getLocation()
getLocation in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Dimension getSize()
getSize in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Rectangle getRect()
getRect in interface org.openqa.selenium.WebElementpublic String getText()
getText in interface org.openqa.selenium.WebElementprotected HtmlUnitDriver getDriver()
public DomElement getElement()
@Deprecated public List<org.openqa.selenium.WebElement> getElementsByTagName(String tagName)
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebElementpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebElementprotected void assertElementNotStale()
public String getCssValue(String propertyName)
getCssValue in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.WebDriver getWrappedDriver()
getWrappedDriver in interface org.openqa.selenium.WrapsDriverpublic org.openqa.selenium.interactions.Coordinates getCoordinates()
getCoordinates in interface org.openqa.selenium.interactions.Locatablepublic org.openqa.selenium.Point onScreen()
onScreen in interface org.openqa.selenium.interactions.Coordinatespublic org.openqa.selenium.Point inViewPort()
inViewPort in interface org.openqa.selenium.interactions.Coordinatespublic org.openqa.selenium.Point onPage()
onPage in interface org.openqa.selenium.interactions.Coordinatespublic Object getAuxiliary()
getAuxiliary in interface org.openqa.selenium.interactions.Coordinatespublic <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> outputType)
throws org.openqa.selenium.WebDriverException
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotorg.openqa.selenium.WebDriverExceptionpublic int getId()
Copyright © 2022. All rights reserved.