org.openqa.selenium.remote
Class RemoteWebElement
java.lang.Object
org.openqa.selenium.remote.RemoteWebElement
- All Implemented Interfaces:
- FindsByClassName, FindsById, FindsByLinkText, FindsByName, FindsByXPath, SearchContext, WebElement
- Direct Known Subclasses:
- RenderedRemoteWebElement
public class RemoteWebElement
- extends java.lang.Object
- implements WebElement, SearchContext, FindsByLinkText, FindsById, FindsByName, FindsByClassName, FindsByXPath
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
id
protected java.lang.String id
parent
protected RemoteWebDriver parent
RemoteWebElement
public RemoteWebElement()
setParent
public void setParent(RemoteWebDriver parent)
getId
public java.lang.String getId()
setId
public void setId(java.lang.String id)
click
public void click()
- Specified by:
click in interface WebElement
submit
public void submit()
- Specified by:
submit in interface WebElement
getValue
public java.lang.String getValue()
- Specified by:
getValue in interface WebElement
sendKeys
public void sendKeys(java.lang.CharSequence... keysToSend)
- Specified by:
sendKeys in interface WebElement
clear
public void clear()
- Specified by:
clear in interface WebElement
getTagName
public java.lang.String getTagName()
- Specified by:
getTagName in interface WebElement
getElementName
public java.lang.String getElementName()
- Deprecated. Use
getTagName() instead, this method will be removed in the near future.
- Specified by:
getElementName in interface WebElement
getAttribute
public java.lang.String getAttribute(java.lang.String name)
- Specified by:
getAttribute in interface WebElement
toggle
public boolean toggle()
- Specified by:
toggle in interface WebElement
isSelected
public boolean isSelected()
- Specified by:
isSelected in interface WebElement
setSelected
public void setSelected()
- Specified by:
setSelected in interface WebElement
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface WebElement
getText
public java.lang.String getText()
- Specified by:
getText in interface WebElement
findElements
public java.util.List<WebElement> findElements(By by)
- Specified by:
findElements in interface SearchContext- Specified by:
findElements in interface WebElement
findElement
public WebElement findElement(By by)
- Specified by:
findElement in interface SearchContext- Specified by:
findElement in interface WebElement
findElementById
public WebElement findElementById(java.lang.String using)
- Specified by:
findElementById in interface FindsById
findElementsById
public java.util.List<WebElement> findElementsById(java.lang.String using)
- Specified by:
findElementsById in interface FindsById
findElementByLinkText
public WebElement findElementByLinkText(java.lang.String using)
- Specified by:
findElementByLinkText in interface FindsByLinkText
findElementsByLinkText
public java.util.List<WebElement> findElementsByLinkText(java.lang.String using)
- Specified by:
findElementsByLinkText in interface FindsByLinkText
findElementByName
public WebElement findElementByName(java.lang.String using)
- Specified by:
findElementByName in interface FindsByName
findElementsByName
public java.util.List<WebElement> findElementsByName(java.lang.String using)
- Specified by:
findElementsByName in interface FindsByName
findElementByClassName
public WebElement findElementByClassName(java.lang.String using)
- Specified by:
findElementByClassName in interface FindsByClassName
findElementsByClassName
public java.util.List<WebElement> findElementsByClassName(java.lang.String using)
- Specified by:
findElementsByClassName in interface FindsByClassName
findElementByXPath
public WebElement findElementByXPath(java.lang.String using)
- Specified by:
findElementByXPath in interface FindsByXPath
findElementsByXPath
public java.util.List<WebElement> findElementsByXPath(java.lang.String using)
- Specified by:
findElementsByXPath in interface FindsByXPath
findElementByPartialLinkText
public WebElement findElementByPartialLinkText(java.lang.String using)
- Specified by:
findElementByPartialLinkText in interface FindsByLinkText
findElementsByPartialLinkText
public java.util.List<WebElement> findElementsByPartialLinkText(java.lang.String using)
- Specified by:
findElementsByPartialLinkText in interface FindsByLinkText
execute
protected Response execute(java.lang.String commandName,
java.lang.Object... parameters)
getElementFrom
protected WebElement getElementFrom(Response response)
getElementsFrom
protected java.util.List<WebElement> getElementsFrom(Response response)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2009. All Rights Reserved.