Unable to pass value via setText from Global variable

I have two test cases in one test suite for mobile testing.
One test case is to get password, and save them as GlobalVaribale.TempPwd.

GlobalVariable.TempPwd = Mobile.getDeviceHeight()

Second test case is to take this GlobalVaribale.TempPwd. to variable password, and passing value to an object via keyword
Mobile.setText(findTestObject(‘Login Page - enter password’),password, 0)

However, the variable password’s value is being updated.

But the second test is failing and error is
Reason:
groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.setText() is applicable for argument types: (com.kms.katalon.core.testobject.TestObject, java.lang.Integer, java.lang.Integer) values:

It would be much easier if you…

  1. Post the code only from the Test Case that is issuing the error.

  2. Post the code cleanly and post the entire error log.

Based on what I see above, for the code that’s issuing that error, you are sending one Test Object and two integers to setText() there is no such method in Katalon’s API set.

Here is the documentation for setText:

https://docs.katalon.com/katalon-studio/docs/mobile-set-text.html

In future, to save everyone time including you, make your post following this advice - thanks:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.