- Set a variable within the script with value from a web element's text field of a webpage.
Parameters
- x: The variable name
- y: The xpath of an web element that have a text field
Usage
- WEBGETTEXT 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
- WEBGETTEXT mytext = /html/body/a
- WAITINPUT %mytext%
- WEBCLOSE