[Windows] Set Text
Description​
Perform a text setting action on the Web element found by using the locator value of the given Windows object. This action clears the current text and appends the given text to the element.
Keyword name: setText
Parameters​
Parameter | Parameter Type | Required | Description |
---|---|---|---|
windowsObject | WindowsTestObject | Yes | An object describing the locator and locator strategy to find a Windows element. |
text | String | Yes | The text content to set on the element. |
Example​
"Set 'Welcome to Katalon Studio' on the edit panel"
Windows.setText(findWindowsObject("Object Repository/Edit"), 'Welcome to Katalon Studio')