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 Object
implements org.openqa.selenium.WebElement, org.openqa.selenium.interactions.Locatable, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WrapsDriver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileDetector
protected String
protected RemoteWebDriver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
click()
boolean
protected Response
protected Response
execute
(CommandPayload payload) org.openqa.selenium.WebElement
findElement
(org.openqa.selenium.By locator) List<org.openqa.selenium.WebElement>
findElements
(org.openqa.selenium.By locator) getAttribute
(String name) org.openqa.selenium.interactions.Coordinates
getCssValue
(String propertyName) getDomAttribute
(String name) getDomProperty
(String name) getId()
org.openqa.selenium.Point
org.openqa.selenium.Rectangle
getRect()
<X> X
getScreenshotAs
(org.openqa.selenium.OutputType<X> outputType) org.openqa.selenium.SearchContext
org.openqa.selenium.Dimension
getSize()
getText()
org.openqa.selenium.WebDriver
int
hashCode()
boolean
boolean
boolean
void
sendKeys
(CharSequence... keysToSend) void
setFileDetector
(FileDetector detector) protected void
setFoundBy
(org.openqa.selenium.SearchContext foundFrom, String locator, String term) void
void
setParent
(RemoteWebDriver parent) void
submit()
toJson()
toString()
-
Field Details
-
id
-
parent
-
fileDetector
-
-
Constructor Details
-
RemoteWebElement
public RemoteWebElement()
-
-
Method Details
-
setFoundBy
-
setParent
-
getId
-
setId
-
setFileDetector
-
click
public void click()- Specified by:
click
in interfaceorg.openqa.selenium.WebElement
-
submit
public void submit()- Specified by:
submit
in interfaceorg.openqa.selenium.WebElement
-
sendKeys
- Specified by:
sendKeys
in interfaceorg.openqa.selenium.WebElement
-
clear
public void clear()- Specified by:
clear
in interfaceorg.openqa.selenium.WebElement
-
getTagName
- Specified by:
getTagName
in interfaceorg.openqa.selenium.WebElement
-
getDomProperty
- Specified by:
getDomProperty
in interfaceorg.openqa.selenium.WebElement
-
getDomAttribute
- Specified by:
getDomAttribute
in interfaceorg.openqa.selenium.WebElement
-
getAttribute
- Specified by:
getAttribute
in interfaceorg.openqa.selenium.WebElement
-
getAriaRole
- Specified by:
getAriaRole
in interfaceorg.openqa.selenium.WebElement
-
getAccessibleName
- Specified by:
getAccessibleName
in interfaceorg.openqa.selenium.WebElement
-
isSelected
public boolean isSelected()- Specified by:
isSelected
in interfaceorg.openqa.selenium.WebElement
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceorg.openqa.selenium.WebElement
-
getText
- Specified by:
getText
in interfaceorg.openqa.selenium.WebElement
-
getCssValue
- Specified by:
getCssValue
in interfaceorg.openqa.selenium.WebElement
-
findElements
- Specified by:
findElements
in interfaceorg.openqa.selenium.SearchContext
- Specified by:
findElements
in interfaceorg.openqa.selenium.WebElement
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By locator) - Specified by:
findElement
in interfaceorg.openqa.selenium.SearchContext
- Specified by:
findElement
in interfaceorg.openqa.selenium.WebElement
-
getShadowRoot
public org.openqa.selenium.SearchContext getShadowRoot()- Specified by:
getShadowRoot
in interfaceorg.openqa.selenium.WebElement
-
execute
-
execute
-
equals
-
hashCode
public int hashCode() -
getWrappedDriver
public org.openqa.selenium.WebDriver getWrappedDriver()- Specified by:
getWrappedDriver
in interfaceorg.openqa.selenium.WrapsDriver
-
isDisplayed
public boolean isDisplayed()- Specified by:
isDisplayed
in interfaceorg.openqa.selenium.WebElement
-
getLocation
public org.openqa.selenium.Point getLocation()- Specified by:
getLocation
in interfaceorg.openqa.selenium.WebElement
-
getSize
public org.openqa.selenium.Dimension getSize()- Specified by:
getSize
in interfaceorg.openqa.selenium.WebElement
-
getRect
public org.openqa.selenium.Rectangle getRect()- Specified by:
getRect
in interfaceorg.openqa.selenium.WebElement
-
getCoordinates
public org.openqa.selenium.interactions.Coordinates getCoordinates()- Specified by:
getCoordinates
in interfaceorg.openqa.selenium.interactions.Locatable
-
getScreenshotAs
@Beta public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> outputType) throws org.openqa.selenium.WebDriverException - Specified by:
getScreenshotAs
in interfaceorg.openqa.selenium.TakesScreenshot
- Throws:
org.openqa.selenium.WebDriverException
-
toString
-
toJson
-