I have the following lines on my code :
WebUI.waitForElementPresent(findTestObject(‘Object Repository/Pages/Refinancing/Tell us about yourself/Co-Borrower/Borrow Section’), 5)
‘Verify Co borrowers section display’
VerifyElementPresentKeyword(findTestObject(‘Object Repository/Pages/Refinancing/Tell us about yourself/Co-Borrower/Borrow Section’), GlobalVariable.WaitPresentTimeout)
the problem is it fails on verify with the following error :
No signature of method: Script1618402012894.VerifyElementPresentKeyword() is applicable for argument types: (com.kms.katalon.core.testobject.TestObject, java.lang.Integer) values: [TestObject - ‘Object Repository/Pages/Refinancing/Tell us about yourself/Co-Borrower/Borrow Section’, …]
Look at the data type of your Global Variable, WaitPresentTimeout. Your method VerifyElementPresentKeyword() is expecting an Integer. Check that WaitPresentTimeout is an Integer or convert it to an Integer: Integer.parseInt(GlobalVariable.WaitPresentTimeout).
error :
No signature of method: static java.lang.Integer.parseInt() is applicable for argument types: (java.lang.Integer) values: [5]
Possible solutions: parseInt(java.lang.String), parseInt(java.lang.String, int), print(java.io.PrintWriter), print(java.lang.Object)
No signature of method: Script1618402012894.VerifyElementPresent() is applicable for argument types: (com.kms.katalon.core.testobject.TestObject, java.lang.Integer) values: [TestObject - ‘Object Repository/Pages/Refinancing/Tell us about yourself/Co-Borrower/Borrow Section’, …]
If you made a Keyword called, VerifyElementPresentKeyword, what data types did you give the parameters in it? You have to match whatever data type you gave in the Keyword to the parameters when you call the Keyword.
At the end of this quotation you have a triple dots “Section', ...]”.
Did you manually type ... when you write a post into the forum?
If you didn’t it and system message showed “Section', ...]”, then it is very curious. It seems that the system does not understands the type of GlobalVariable.WaitPresentTimeout variable.
Is it really defined?
You might have another name “GlobalVariable.WaitForElementTimeout”, don’t you?
In which Execution Profile you defined that GlobalVariable? In the “default” Execution Profile? Do you have another Execution Profile? Did you selected the appropriate Execution Profile when you ran the test case?