我正在使用Katalon Studio进行自动化,并且在调用方法时遇到此错误。我正在尝试为输入字段添加时间戳。
下面是我的方法
String todayDate() {
Date today = new Date()
return today.toString()
}
下面是我要调用该方法的脚本代码
myVar = todayDate()
WebUI.setText(findTestObject('ObjectRepository/ClassNotices/Page_CloudSchool
Teacher/input_Heading_noticeHeading'), myVar)