[Windows] Set Text

Estimated reading time: 1 minute

Starting from version 7.0.0, Windows desktop application testing is available on Katalon Studio.

setText

  • Description: Perform a text setting action on the Web element found by using the locator value of the given Windows object.
  • Keyword name: setText
  • Keyword syntax: Windows.setText(windowsObject,text)
  • Parameters:
    • Name: windowsObject.
      • Description: An object describing the locator and locator strategy to find a Windows element.
      • Parameter Type: WindowsTestObject.
      • Mandatory: Required.
    • Name: text
      • Description: The text content to set on the element
      • Parameter Type: String
      • Mandatory: Required
  • Example:
"Set 'Welcome to Katalon Studio' on the edit panel"
Windows.setText(findWindowsObject("Object Repository/Edit"), 'Welcome to Katalon Studio')

User Contributed Notes