Keyword: WEBGETTEXT - Text from Web Form

Keywords are used within scripts that enabled powerful features such as dynamic variables, clipboard manipulation, read/write files, mimic inputs and more.
User avatar
YiMeng
Author
Posts: 235
Joined: Sat Jul 18, 2020 10:58 pm
Location: NY
Contact:

Keyword: WEBGETTEXT - Text from Web Form

Unread post by YiMeng »

Description
  • 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.