Skip to main content

[Windows] Set Text

Requirements

  • Katalon Studio version 7.0.0 onwards.

setText

  • 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
  • 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')