Creation of Test Object in Object Repository in Runtime

Hi Indurajan

I use this:

  /**
   * Construct a Katalon-compatible TestObject in memory.
   * @param css (String) The CSS selector used to find the target element.
   * @return (TestObject) The constructed TestObject. 
   */
  static TestObject makeTO(String css) {
    TestObject to = new TestObject()
    to.addProperty("css", ConditionType.EQUALS, css)
    return to
  }

6 Likes