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.WebElement
public void submit()
submit
in interface org.openqa.selenium.WebElement
public void clear()
clear
in interface org.openqa.selenium.WebElement
public void sendKeys(CharSequence... value)
sendKeys
in interface org.openqa.selenium.WebElement
public String getTagName()
getTagName
in interface org.openqa.selenium.WebElement
public String getAttribute(String name)
getAttribute
in interface org.openqa.selenium.WebElement
public String getDomProperty(String name)
getDomProperty
in interface org.openqa.selenium.WebElement
public String getDomAttribute(String name)
getDomAttribute
in interface org.openqa.selenium.WebElement
public boolean isSelected()
isSelected
in interface org.openqa.selenium.WebElement
public boolean isEnabled()
isEnabled
in interface org.openqa.selenium.WebElement
public boolean isDisplayed()
isDisplayed
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Point getLocation()
getLocation
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Dimension getSize()
getSize
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Rectangle getRect()
getRect
in interface org.openqa.selenium.WebElement
public String getText()
getText
in interface org.openqa.selenium.WebElement
protected 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.SearchContext
findElement
in interface org.openqa.selenium.WebElement
public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements
in interface org.openqa.selenium.SearchContext
findElements
in interface org.openqa.selenium.WebElement
protected void assertElementNotStale()
public String getCssValue(String propertyName)
getCssValue
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.WebDriver getWrappedDriver()
getWrappedDriver
in interface org.openqa.selenium.WrapsDriver
public org.openqa.selenium.interactions.Coordinates getCoordinates()
getCoordinates
in interface org.openqa.selenium.interactions.Locatable
public org.openqa.selenium.Point onScreen()
onScreen
in interface org.openqa.selenium.interactions.Coordinates
public org.openqa.selenium.Point inViewPort()
inViewPort
in interface org.openqa.selenium.interactions.Coordinates
public org.openqa.selenium.Point onPage()
onPage
in interface org.openqa.selenium.interactions.Coordinates
public Object getAuxiliary()
getAuxiliary
in interface org.openqa.selenium.interactions.Coordinates
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> outputType) throws org.openqa.selenium.WebDriverException
getScreenshotAs
in interface org.openqa.selenium.TakesScreenshot
org.openqa.selenium.WebDriverException
public int getId()
Copyright © 2022. All rights reserved.