I have the following code
def driver = DF.getWebDriver()
plan = driver.findElements(By.xpath(‘//a[@title=\‘Application Number\’]’))
print(WebUI.getAttribute(plan, ‘value’))
AppID = WebUI.getText(findTestObject(‘Temp/Page_LA IE - Register Person - Deta (3)/a_${plan}’))
Application number is generated by the application and I need to read it into a global variable, so that I can pass it on to next Test Case.
While executing this script, getting following error, please help.
03-14-2018 08:01:55 PM - [ERROR] - Test Cases/New Test Case1 FAILED because (of) groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.getAttribute() is applicable for argument types: (java.util.ArrayList, java.lang.String) values: [[[[CChromeDriver: chrome on XP (4911d8bfaef9840abfc3716364d07a85)] → xpath: //a[@title=‘Application Number’]]], …]