public class HtmlUnitWebElement extends Object implements org.openqa.selenium.internal.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.internal.Locatable, org.openqa.selenium.WebElement
| Modifier and Type | Field and Description |
|---|---|
protected com.gargoylesoftware.htmlunit.html.DomElement |
element |
protected int |
id |
protected HtmlUnitLocalDriver |
parent |
| Constructor and Description |
|---|
HtmlUnitWebElement(HtmlUnitLocalDriver 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 id) |
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 id) |
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) |
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 HtmlUnitLocalDriver |
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() |
boolean |
isDisplayed() |
boolean |
isEnabled() |
boolean |
isSelected() |
void |
sendKeys(CharSequence... value) |
void |
submit() |
String |
toString() |
protected final HtmlUnitLocalDriver parent
protected final int id
protected final com.gargoylesoftware.htmlunit.html.DomElement element
public HtmlUnitWebElement(HtmlUnitLocalDriver parent, int id, com.gargoylesoftware.htmlunit.html.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 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 HtmlUnitLocalDriver 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.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.WebElementpublic org.openqa.selenium.WebElement findElementById(String id)
findElementById in interface org.openqa.selenium.internal.FindsByIdpublic List<org.openqa.selenium.WebElement> findElementsById(String id)
findElementsById in interface org.openqa.selenium.internal.FindsByIdpublic List<org.openqa.selenium.WebElement> findElementsByCssSelector(String using)
findElementsByCssSelector in interface org.openqa.selenium.internal.FindsByCssSelectorpublic org.openqa.selenium.WebElement findElementByCssSelector(String using)
findElementByCssSelector in interface org.openqa.selenium.internal.FindsByCssSelectorpublic org.openqa.selenium.WebElement findElementByXPath(String xpathExpr)
findElementByXPath in interface org.openqa.selenium.internal.FindsByXPathpublic List<org.openqa.selenium.WebElement> findElementsByXPath(String xpathExpr)
findElementsByXPath in interface org.openqa.selenium.internal.FindsByXPathpublic org.openqa.selenium.WebElement findElementByLinkText(String linkText)
findElementByLinkText in interface org.openqa.selenium.internal.FindsByLinkTextpublic List<org.openqa.selenium.WebElement> findElementsByLinkText(String linkText)
findElementsByLinkText in interface org.openqa.selenium.internal.FindsByLinkTextpublic org.openqa.selenium.WebElement findElementByPartialLinkText(String linkText)
findElementByPartialLinkText in interface org.openqa.selenium.internal.FindsByLinkTextpublic List<org.openqa.selenium.WebElement> findElementsByPartialLinkText(String linkText)
findElementsByPartialLinkText in interface org.openqa.selenium.internal.FindsByLinkTextpublic org.openqa.selenium.WebElement findElementByTagName(String name)
findElementByTagName in interface org.openqa.selenium.internal.FindsByTagNamepublic List<org.openqa.selenium.WebElement> findElementsByTagName(String name)
findElementsByTagName in interface org.openqa.selenium.internal.FindsByTagNameprotected 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.internal.WrapsDriverpublic org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
getCoordinates in interface org.openqa.selenium.internal.Locatablepublic <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 © 2017. All rights reserved.