Enum ElementAction
The actions that can be performed on an element.
Namespace: RuriLib
Assembly: RuriLib.dll
Syntax
public enum ElementAction
Fields
| Name | Description |
|---|---|
| Clear | Clears the text of an input element. |
| Click | Clicks an element. |
| GetAttribute | Gets a given attribute of an element. |
| GetText | Gets the text inside an element. |
| IsDisplayed | Checks if the element is currently displayed on the page. |
| IsEnabled | Checks if the element is enabled on the page. |
| IsSelected | Checks if the element is selected. |
| LocationX | Retrieves the X coordinate of the top-left corner of the element. |
| LocationY | Retrieves the Y coordinate of the top-left corner of the element. |
| Screenshot | Takes a screenshot of the element. |
| SendKeys | Sends keystrokes to an input element. |
| SendKeysHuman | Types keystrokes into an input element with random delays between each keystroke, like a human would. |
| SizeX | Retrieves the width of the element. |
| SizeY | Retrieves the height of the element. |
| Submit | Submits a form element. |
| SwitchToFrame | Switches to the iframe element. |
| WaitForElement | Waits until the element appears in the DOM (up to a specified timeout). |