Package org.openqa.selenium.remote
Class RemoteWebElement
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebElement
-
- All Implemented Interfaces:
org.openqa.selenium.interactions.Locatable,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsDriver
public class RemoteWebElement extends java.lang.Object implements org.openqa.selenium.WebElement, org.openqa.selenium.interactions.Locatable, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WrapsDriver
-
-
Field Summary
Fields Modifier and Type Field Description protected FileDetectorfileDetectorprotected java.lang.Stringidprotected RemoteWebDriverparent
-
Constructor Summary
Constructors Constructor Description RemoteWebElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclear()voidclick()booleanequals(java.lang.Object obj)protected Responseexecute(java.lang.String command, java.util.Map<java.lang.String,?> parameters)protected Responseexecute(CommandPayload payload)protected org.openqa.selenium.WebElementfindElement(java.lang.String using, java.lang.String value)Deprecated.Rely on usingBy.Remotableinsteadorg.openqa.selenium.WebElementfindElement(org.openqa.selenium.By locator)protected java.util.List<org.openqa.selenium.WebElement>findElements(java.lang.String using, java.lang.String value)Deprecated.Rely on usingBy.Remotableinsteadjava.util.List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.By locator)java.lang.StringgetAccessibleName()java.lang.StringgetAriaRole()java.lang.StringgetAttribute(java.lang.String name)org.openqa.selenium.interactions.CoordinatesgetCoordinates()java.lang.StringgetCssValue(java.lang.String propertyName)java.lang.StringgetDomAttribute(java.lang.String name)java.lang.StringgetDomProperty(java.lang.String name)java.lang.StringgetId()org.openqa.selenium.PointgetLocation()org.openqa.selenium.RectanglegetRect()<X> XgetScreenshotAs(org.openqa.selenium.OutputType<X> outputType)org.openqa.selenium.SearchContextgetShadowRoot()org.openqa.selenium.DimensiongetSize()java.lang.StringgetTagName()java.lang.StringgetText()org.openqa.selenium.WebDrivergetWrappedDriver()inthashCode()booleanisDisplayed()booleanisEnabled()booleanisSelected()voidsendKeys(java.lang.CharSequence... keysToSend)voidsetFileDetector(FileDetector detector)protected voidsetFoundBy(org.openqa.selenium.SearchContext foundFrom, java.lang.String locator, java.lang.String term)voidsetId(java.lang.String id)voidsetParent(RemoteWebDriver parent)voidsubmit()java.util.Map<java.lang.String,java.lang.Object>toJson()java.lang.StringtoString()
-
-
-
Field Detail
-
id
protected java.lang.String id
-
parent
protected RemoteWebDriver parent
-
fileDetector
protected FileDetector fileDetector
-
-
Method Detail
-
setFoundBy
protected void setFoundBy(org.openqa.selenium.SearchContext foundFrom, java.lang.String locator, java.lang.String term)
-
setParent
public void setParent(RemoteWebDriver parent)
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
setFileDetector
public void setFileDetector(FileDetector detector)
-
click
public void click()
- Specified by:
clickin interfaceorg.openqa.selenium.WebElement
-
submit
public void submit()
- Specified by:
submitin interfaceorg.openqa.selenium.WebElement
-
sendKeys
public void sendKeys(java.lang.CharSequence... keysToSend)
- Specified by:
sendKeysin interfaceorg.openqa.selenium.WebElement
-
clear
public void clear()
- Specified by:
clearin interfaceorg.openqa.selenium.WebElement
-
getTagName
public java.lang.String getTagName()
- Specified by:
getTagNamein interfaceorg.openqa.selenium.WebElement
-
getDomProperty
public java.lang.String getDomProperty(java.lang.String name)
- Specified by:
getDomPropertyin interfaceorg.openqa.selenium.WebElement
-
getDomAttribute
public java.lang.String getDomAttribute(java.lang.String name)
- Specified by:
getDomAttributein interfaceorg.openqa.selenium.WebElement
-
getAttribute
public java.lang.String getAttribute(java.lang.String name)
- Specified by:
getAttributein interfaceorg.openqa.selenium.WebElement
-
getAriaRole
public java.lang.String getAriaRole()
- Specified by:
getAriaRolein interfaceorg.openqa.selenium.WebElement
-
getAccessibleName
public java.lang.String getAccessibleName()
- Specified by:
getAccessibleNamein interfaceorg.openqa.selenium.WebElement
-
isSelected
public boolean isSelected()
- Specified by:
isSelectedin interfaceorg.openqa.selenium.WebElement
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceorg.openqa.selenium.WebElement
-
getText
public java.lang.String getText()
- Specified by:
getTextin interfaceorg.openqa.selenium.WebElement
-
getCssValue
public java.lang.String getCssValue(java.lang.String propertyName)
- Specified by:
getCssValuein interfaceorg.openqa.selenium.WebElement
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By locator)
- Specified by:
findElementsin interfaceorg.openqa.selenium.SearchContext- Specified by:
findElementsin interfaceorg.openqa.selenium.WebElement
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By locator)
- Specified by:
findElementin interfaceorg.openqa.selenium.SearchContext- Specified by:
findElementin interfaceorg.openqa.selenium.WebElement
-
findElement
@Deprecated protected org.openqa.selenium.WebElement findElement(java.lang.String using, java.lang.String value)Deprecated.Rely on usingBy.Remotableinstead
-
findElements
@Deprecated protected java.util.List<org.openqa.selenium.WebElement> findElements(java.lang.String using, java.lang.String value)Deprecated.Rely on usingBy.Remotableinstead
-
getShadowRoot
public org.openqa.selenium.SearchContext getShadowRoot()
- Specified by:
getShadowRootin interfaceorg.openqa.selenium.WebElement
-
execute
protected Response execute(CommandPayload payload)
-
execute
protected Response execute(java.lang.String command, java.util.Map<java.lang.String,?> parameters)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- Returns:
- This element's hash code, which is a hash of its internal opaque ID.
-
getWrappedDriver
public org.openqa.selenium.WebDriver getWrappedDriver()
- Specified by:
getWrappedDriverin interfaceorg.openqa.selenium.WrapsDriver
-
isDisplayed
public boolean isDisplayed()
- Specified by:
isDisplayedin interfaceorg.openqa.selenium.WebElement
-
getLocation
public org.openqa.selenium.Point getLocation()
- Specified by:
getLocationin interfaceorg.openqa.selenium.WebElement
-
getSize
public org.openqa.selenium.Dimension getSize()
- Specified by:
getSizein interfaceorg.openqa.selenium.WebElement
-
getRect
public org.openqa.selenium.Rectangle getRect()
- Specified by:
getRectin interfaceorg.openqa.selenium.WebElement
-
getCoordinates
public org.openqa.selenium.interactions.Coordinates getCoordinates()
- Specified by:
getCoordinatesin interfaceorg.openqa.selenium.interactions.Locatable
-
getScreenshotAs
@Beta public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> outputType) throws org.openqa.selenium.WebDriverException- Specified by:
getScreenshotAsin interfaceorg.openqa.selenium.TakesScreenshot- Throws:
org.openqa.selenium.WebDriverException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toJson
public java.util.Map<java.lang.String,java.lang.Object> toJson()
-
-