Defines the interface through which the user controls elements on the page.
public interface IWebElement : ISearchContext
Gets a value indicating whether or not this element is displayed.
Property ValueThrown when the target element is no longer valid in the document DOM.
Gets a value indicating whether or not this element is enabled.
Property ValueThrown when the target element is no longer valid in the document DOM.
Gets a Point object containing the coordinates of the upper-left corner of this element relative to the upper-left corner of the page.
Property ValueThrown when the target element is no longer valid in the document DOM.
Gets a value indicating whether or not this element is selected.
Property ValueThrown when the target element is no longer valid in the document DOM.
Gets a Size object containing the height and width of this element.
Property ValueThrown when the target element is no longer valid in the document DOM.
Gets the tag name of this element.
Property ValueThrown when the target element is no longer valid in the document DOM.
Get the visible (i.e. not hidden by CSS) text of this element, including sub-elements.
Property ValueThrown when the target element is no longer valid in the document DOM.
Clears the content of this element.
ExceptionsThrown when the target element is no longer valid in the document DOM.
Clicks this element.
ExceptionsThrown when the target element is no longer valid in the document DOM.
Gets the value of the specified attribute for this element.
string? GetAttribute(string attributeName)
Parameters
attributeName
string
The name of the attribute.
The attribute's current value. Returns a null if the value is not set.
Thrown when the target element is no longer valid in the document DOM.
Gets the value of a CSS property of this element.
string GetCssValue(string propertyName)
Parameters
propertyName
string
The name of the CSS property to get the value of.
The value of the specified CSS property.
Thrown when the target element is no longer valid in the document DOM.
Gets the value of a declared HTML attribute of this element.
string? GetDomAttribute(string attributeName)
Parameters
attributeName
string
The name of the HTML attribute to get the value of.
The HTML attribute's current value. Returns a null if the value is not set or the declared attribute does not exist.
Thrown when the target element is no longer valid in the document DOM.
Gets the value of a JavaScript property of this element.
string? GetDomProperty(string propertyName)
Parameters
propertyName
string
The name of the JavaScript property to get the value of.
The JavaScript property's current value. Returns a null if the value is not set or the property does not exist.
Thrown when the target element is no longer valid in the document DOM.
Gets the representation of an element's shadow root for accessing the shadow DOM of a web component.
ISearchContext GetShadowRoot()
Returns
A shadow root representation.
Thrown when this element does not have a shadow root.
Simulates typing text into the element.
void SendKeys(string text)
Parameters
text
string
The text to type into the element.
Thrown when the target element is not enabled.
Thrown when the target element is no longer valid in the document DOM.
Submits this element to the web server.
ExceptionsThrown when the target element is no longer valid in the document DOM.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4