public class HtmlUnitWebElement extends Object implements org.openqa.selenium.WrapsDriver, org.openqa.selenium.internal.FindsById, org.openqa.selenium.internal.FindsByLinkText, org.openqa.selenium.internal.FindsByXPath, org.openqa.selenium.internal.FindsByTagName, org.openqa.selenium.internal.FindsByCssSelector, org.openqa.selenium.interactions.internal.Locatable, org.openqa.selenium.WebElement, org.openqa.selenium.interactions.internal.Coordinates
Modifier and Type | Field and Description |
---|---|
protected com.gargoylesoftware.htmlunit.html.DomElement |
element |
protected int |
id |
protected HtmlUnitDriver |
parent |
Constructor and Description |
---|
HtmlUnitWebElement(HtmlUnitDriver parent,
int id,
com.gargoylesoftware.htmlunit.html.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) |
org.openqa.selenium.WebElement |
findElementByCssSelector(String using) |
org.openqa.selenium.WebElement |
findElementById(String elemId) |
org.openqa.selenium.WebElement |
findElementByLinkText(String linkText) |
org.openqa.selenium.WebElement |
findElementByPartialLinkText(String linkText) |
org.openqa.selenium.WebElement |
findElementByTagName(String name) |
org.openqa.selenium.WebElement |
findElementByXPath(String xpathExpr) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElementsByCssSelector(String using) |
List<org.openqa.selenium.WebElement> |
findElementsById(String elemId) |
List<org.openqa.selenium.WebElement> |
findElementsByLinkText(String linkText) |
List<org.openqa.selenium.WebElement> |
findElementsByPartialLinkText(String linkText) |
List<org.openqa.selenium.WebElement> |
findElementsByTagName(String name) |
List<org.openqa.selenium.WebElement> |
findElementsByXPath(String xpathExpr) |
String |
getAttribute(String name) |
Object |
getAuxiliary() |
org.openqa.selenium.interactions.internal.Coordinates |
getCoordinates() |
String |
getCssValue(String propertyName) |
protected com.gargoylesoftware.htmlunit.html.DomElement |
getElement() |
List<org.openqa.selenium.WebElement> |
getElementsByTagName(String tagName)
Deprecated.
|
int |
getId() |
org.openqa.selenium.Point |
getLocation() |
protected HtmlUnitDriver |
getParent() |
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() |
protected final HtmlUnitDriver parent
protected final int id
protected final com.gargoylesoftware.htmlunit.html.DomElement element
public HtmlUnitWebElement(HtmlUnitDriver parent, int id, com.gargoylesoftware.htmlunit.html.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 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 getParent()
protected com.gargoylesoftware.htmlunit.html.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
public org.openqa.selenium.WebElement findElementById(String elemId)
findElementById
in interface org.openqa.selenium.internal.FindsById
public List<org.openqa.selenium.WebElement> findElementsById(String elemId)
findElementsById
in interface org.openqa.selenium.internal.FindsById
public List<org.openqa.selenium.WebElement> findElementsByCssSelector(String using)
findElementsByCssSelector
in interface org.openqa.selenium.internal.FindsByCssSelector
public org.openqa.selenium.WebElement findElementByCssSelector(String using)
findElementByCssSelector
in interface org.openqa.selenium.internal.FindsByCssSelector
public org.openqa.selenium.WebElement findElementByXPath(String xpathExpr)
findElementByXPath
in interface org.openqa.selenium.internal.FindsByXPath
public List<org.openqa.selenium.WebElement> findElementsByXPath(String xpathExpr)
findElementsByXPath
in interface org.openqa.selenium.internal.FindsByXPath
public org.openqa.selenium.WebElement findElementByLinkText(String linkText)
findElementByLinkText
in interface org.openqa.selenium.internal.FindsByLinkText
public List<org.openqa.selenium.WebElement> findElementsByLinkText(String linkText)
findElementsByLinkText
in interface org.openqa.selenium.internal.FindsByLinkText
public org.openqa.selenium.WebElement findElementByPartialLinkText(String linkText)
findElementByPartialLinkText
in interface org.openqa.selenium.internal.FindsByLinkText
public List<org.openqa.selenium.WebElement> findElementsByPartialLinkText(String linkText)
findElementsByPartialLinkText
in interface org.openqa.selenium.internal.FindsByLinkText
public org.openqa.selenium.WebElement findElementByTagName(String name)
findElementByTagName
in interface org.openqa.selenium.internal.FindsByTagName
public List<org.openqa.selenium.WebElement> findElementsByTagName(String name)
findElementsByTagName
in interface org.openqa.selenium.internal.FindsByTagName
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.internal.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 © 2021. All rights reserved.