- Set a variable within the script with a value from a web element's value attribute, on a webpage.
Parameters
- x: The variable name
- y: The xpath of an web element with an value attribute
Usage
- WEBGETVALUE x=y
- To call the variable use: "%x%"
- If xpath element does not exist, a string value of "NaN" is returned.
- Ex.
- WEBFORM https://example.com/targeturl
- WEBGETVALUE mytext = /html/body/a
- WAITINPUT %mytext%
- WEBCLOSE