WebElement class

Implemented types

Constructors

WebElement(WebDriver driver, AsyncRequestClient _client, WebDriverHandler _handler, String id, [SearchContext context, dynamic locator, int index])

Properties

attributes Attributes
Access to the HTML attributes of this tag. [...]
read-only
context SearchContext
The context from which this element was found.
final
cssProperties Attributes
Access to the cssProperties of this element. [...]
read-only
displayed Future<bool>
Is this element visible in the page?
read-only
driver WebDriver
final
enabled Future<bool>
Is this form element enabled?
read-only
hashCode int
The hash code for this object. [...]
read-only, override
id String
final
index int
The index of this element in the set of element founds. If the method used to find this element always returns one element, then this is null.
final
location Future<Point<num>>
The location within the document of this element.
read-only
locator → dynamic
How the element was located from the context.
final
name Future<String>
The tag name for this element.
read-only
properties Attributes
Access to the HTML properties of this tag.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selected Future<bool>
Is this radio button/checkbox selected?
read-only
seleniumAttributes Attributes
Access to the selenium attributes of this tag. [...]
read-only
size Future<Rectangle<int>>
The size of this element.
read-only
text Future<String>
Visible text within this element.
read-only

Methods

clear() Future<void>
Clear the content of a text element.
click() Future<void>
Click on this element.
equals(WebElement other) Future<bool>
findElement(By by) Future<WebElement>
Find an element nested within this element. [...]
override
findElements(By by) Stream<WebElement>
Find multiple elements nested within this element.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sendKeys(String keysToSend) Future<void>
Send keysToSend to this element.
toJson() Map<String, String>
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override