org.openqa.selenium.htmlunit
Class HtmlUnitWebElement

java.lang.Object
  extended by org.openqa.selenium.htmlunit.HtmlUnitWebElement
All Implemented Interfaces:
org.openqa.selenium.internal.FindsByCssSelector, org.openqa.selenium.internal.FindsById, org.openqa.selenium.internal.FindsByLinkText, org.openqa.selenium.internal.FindsByTagName, org.openqa.selenium.internal.FindsByXPath, org.openqa.selenium.internal.Locatable, org.openqa.selenium.internal.WrapsDriver, org.openqa.selenium.SearchContext, org.openqa.selenium.WebElement

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


Field Summary
protected  com.gargoylesoftware.htmlunit.html.HtmlElement element
           
protected  HtmlUnitDriver parent
           
 
Constructor Summary
HtmlUnitWebElement(HtmlUnitDriver parent, com.gargoylesoftware.htmlunit.html.HtmlElement element)
           
 
Method Summary
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.HtmlElement getElement()
           
 List<org.openqa.selenium.WebElement> getElementsByTagName(String tagName)
           
 org.openqa.selenium.Point getLocation()
           
protected  HtmlUnitDriver getParent()
           
 org.openqa.selenium.Dimension getSize()
           
 String getTagName()
           
 String getText()
           
 org.openqa.selenium.WebDriver getWrappedDriver()
           
 int hashCode()
           
 boolean isDisplayed()
           
 boolean isEnabled()
           
 boolean isSelected()
           
 void sendKeyDownEvent(CharSequence modifierKey)
          Deprecated. Visibility will soon be reduced.
 void sendKeys(CharSequence... value)
           
 void sendKeyUpEvent(CharSequence modifierKey)
          Deprecated. Visibility will soon be reduced.
 void submit()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

protected final HtmlUnitDriver parent

element

protected final com.gargoylesoftware.htmlunit.html.HtmlElement element
Constructor Detail

HtmlUnitWebElement

public HtmlUnitWebElement(HtmlUnitDriver parent,
                          com.gargoylesoftware.htmlunit.html.HtmlElement element)
Method Detail

click

public void click()
Specified by:
click in interface org.openqa.selenium.WebElement

submit

public void submit()
Specified by:
submit in interface org.openqa.selenium.WebElement

clear

public void clear()
Specified by:
clear in interface org.openqa.selenium.WebElement

sendKeyDownEvent

public void sendKeyDownEvent(CharSequence modifierKey)
Deprecated. Visibility will soon be reduced.


sendKeyUpEvent

public void sendKeyUpEvent(CharSequence modifierKey)
Deprecated. Visibility will soon be reduced.


sendKeys

public void sendKeys(CharSequence... value)
Specified by:
sendKeys in interface org.openqa.selenium.WebElement

getTagName

public String getTagName()
Specified by:
getTagName in interface org.openqa.selenium.WebElement

getAttribute

public String getAttribute(String name)
Specified by:
getAttribute in interface org.openqa.selenium.WebElement

isSelected

public boolean isSelected()
Specified by:
isSelected in interface org.openqa.selenium.WebElement

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.openqa.selenium.WebElement

isDisplayed

public boolean isDisplayed()
Specified by:
isDisplayed in interface org.openqa.selenium.WebElement

getLocation

public org.openqa.selenium.Point getLocation()
Specified by:
getLocation in interface org.openqa.selenium.WebElement

getSize

public org.openqa.selenium.Dimension getSize()
Specified by:
getSize in interface org.openqa.selenium.WebElement

getText

public String getText()
Specified by:
getText in interface org.openqa.selenium.WebElement

getParent

protected HtmlUnitDriver getParent()

getElement

protected com.gargoylesoftware.htmlunit.html.HtmlElement getElement()

getElementsByTagName

public List<org.openqa.selenium.WebElement> getElementsByTagName(String tagName)

findElement

public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
Specified by:
findElement in interface org.openqa.selenium.SearchContext
Specified by:
findElement in interface org.openqa.selenium.WebElement

findElements

public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
Specified by:
findElements in interface org.openqa.selenium.SearchContext
Specified by:
findElements in interface org.openqa.selenium.WebElement

findElementById

public org.openqa.selenium.WebElement findElementById(String id)
Specified by:
findElementById in interface org.openqa.selenium.internal.FindsById

findElementsById

public List<org.openqa.selenium.WebElement> findElementsById(String id)
Specified by:
findElementsById in interface org.openqa.selenium.internal.FindsById

findElementsByCssSelector

public List<org.openqa.selenium.WebElement> findElementsByCssSelector(String using)
Specified by:
findElementsByCssSelector in interface org.openqa.selenium.internal.FindsByCssSelector

findElementByCssSelector

public org.openqa.selenium.WebElement findElementByCssSelector(String using)
Specified by:
findElementByCssSelector in interface org.openqa.selenium.internal.FindsByCssSelector

findElementByXPath

public org.openqa.selenium.WebElement findElementByXPath(String xpathExpr)
Specified by:
findElementByXPath in interface org.openqa.selenium.internal.FindsByXPath

findElementsByXPath

public List<org.openqa.selenium.WebElement> findElementsByXPath(String xpathExpr)
Specified by:
findElementsByXPath in interface org.openqa.selenium.internal.FindsByXPath

findElementByLinkText

public org.openqa.selenium.WebElement findElementByLinkText(String linkText)
Specified by:
findElementByLinkText in interface org.openqa.selenium.internal.FindsByLinkText

findElementsByLinkText

public List<org.openqa.selenium.WebElement> findElementsByLinkText(String linkText)
Specified by:
findElementsByLinkText in interface org.openqa.selenium.internal.FindsByLinkText

findElementByPartialLinkText

public org.openqa.selenium.WebElement findElementByPartialLinkText(String linkText)
Specified by:
findElementByPartialLinkText in interface org.openqa.selenium.internal.FindsByLinkText

findElementsByPartialLinkText

public List<org.openqa.selenium.WebElement> findElementsByPartialLinkText(String linkText)
Specified by:
findElementsByPartialLinkText in interface org.openqa.selenium.internal.FindsByLinkText

findElementByTagName

public org.openqa.selenium.WebElement findElementByTagName(String name)
Specified by:
findElementByTagName in interface org.openqa.selenium.internal.FindsByTagName

findElementsByTagName

public List<org.openqa.selenium.WebElement> findElementsByTagName(String name)
Specified by:
findElementsByTagName in interface org.openqa.selenium.internal.FindsByTagName

toString

public String toString()
Overrides:
toString in class Object

assertElementNotStale

protected void assertElementNotStale()

getCssValue

public String getCssValue(String propertyName)
Specified by:
getCssValue in interface org.openqa.selenium.WebElement

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getWrappedDriver

public org.openqa.selenium.WebDriver getWrappedDriver()
Specified by:
getWrappedDriver in interface org.openqa.selenium.internal.WrapsDriver

getCoordinates

public org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
Specified by:
getCoordinates in interface org.openqa.selenium.internal.Locatable


Copyright © 2013. All rights reserved.