Get Web Element Property
Command description
Get a property value from the web element's JavaScript HTMLElement.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Webpage Object | WebPage | |
| Web Element | WebElement or str (captured element UID, not element name, not ms-rpa-id) | Select a captured element or one returned by Get Web Element, Get Similar Web Elements, or Get Related Web Elements |
| Property Name | str | Name of the JavaScript HTMLElement property to read |
| Element Wait Duration | number | Maximum time to wait for the element to appear, in seconds |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Property Value | any |
Type definition reference
Read common WebElement properties directly
The following Python expressions provide direct access to commonly used properties.
| Python expression | Description |
|---|---|
webElement.innerText | innerText of the JavaScript HTMLElement |
webElement.href | href of the JavaScript HTMLElement |
webElement.src | src of the JavaScript HTMLElement |
webElement.textContent | textContent of the JavaScript HTMLElement |
webElement.value | value of the JavaScript HTMLElement |
webElement.checked | checked of the JavaScript HTMLElement |
webElement.selected | selected of the JavaScript HTMLElement |
webElement.left | Physical-pixel distance from the left edge of the screen to the element's left edge; reading it activates the corresponding webpage and brings its browser window to the front |
webElement.top | Physical-pixel distance from the top edge of the screen to the element's top edge; reading it activates the corresponding webpage and brings its browser window to the front |
webElement.right | Physical-pixel distance from the left edge of the screen to the element's right edge; reading it activates the corresponding webpage and brings its browser window to the front |
webElement.bottom | Physical-pixel distance from the top of the screen to the bottom edge of the element; reading it activates the corresponding webpage and brings its browser window to the front |
webElement.width | Element width in physical pixels; reading it activates the corresponding webpage and brings its browser window to the front |
webElement.height | Element height in physical pixels; reading it activates the corresponding webpage and brings its browser window to the front |
For other webElement properties, refer to the WebElement class definition.
tip
- Install the Runavelo browser extension before using this command.
- See Capture Web Elements for instructions on capturing elements and editing their attributes.