title: Could not find which method <init>() to invoke from this list - Katalon
body: <p>I'm using Katalon studio for automation and I'm getting this error when calling a method. I'm trying to get a timestamp to an input field.</p>
  
  <p>Below is my method</p>
  
  <pre><code>String todayDate() {
    Date today = new Date()
    return today.toString()
  }
  </code></pre>
  
  <p>Below is the script code I'm trying to call the method to</p>
  
  <pre><code>myVar = todayDate()
  
  WebUI.setText(findTestObject('ObjectRepository/ClassNotices/Page_CloudSchool  
                Teacher/input_Heading_noticeHeading'), myVar)
  </code></pre>