Skip to main content

[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 TypeRequiredDescription
windowsObjectWindowsTestObjectYesAn object describing the locator and locator strategy to find a Windows element.
textStringYesThe 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')
Was this page helpful?