On mobile there is a field for activation, the filed is : +357 xxxxxxxxxxx
xxxxxx is the mobile number.
Field details: android.widget.EditText1 - +357
I cannot set text on this field. when I record my test case i don’t have any error but when i am doing the action on this field the mobile number is not written.
Can some help me?
Also when I tried to run my scenario I had the following error. Thank you
04-11-2019 11:34:25 AM Test Cases/MFS Activation 1
Elapsed time: 58.392s
Test Cases/MFS Activation 1 FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to set text ‘10000001’ of object ‘Object Repository/android.widget.EditText1 - 357’
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:48)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)
at com.kms.katalon.core.webui.keyword.builtin.SetTextKeyword.setText(SetTextKeyword.groovy:65)
at com.kms.katalon.core.webui.keyword.builtin.SetTextKeyword.execute(SetTextKeyword.groovy:37)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.setText(WebUiBuiltInKeywords.groovy:950)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$setText.call(Unknown Source)
at MFS Activation 1.run(MFS Activation 1:21)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:331)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:322)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:301)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:293)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:227)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1554971660291.run(TempTestCase1554971660291.groovy:21)
Hello Arnel,
Thanks for your reply. I tried your solution but it didn’t work. The only difference is that the step now is completed succsfully but the data didn’t enter on the application in order to continue.
Thank you
I’ve sometimes seen this when a custom input field is used. If possible, could you please share a screenshot of the screen right before you’re trying to enter the text? Could you also share the properties of the Test Object in the Object Repository that you’re trying to enter text into?
I find a solution fro this issues. I run the commands to use the kyebord.
please see below my solution
import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory as MobileDriverFactory
import io.appium.java_client.android.AndroidDriver as AndroidDriver
import io.appium.java_client.android.AndroidKeyCode as AndroidKeyCode
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable
import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory as MobileDriverFactory
import io.appium.java_client.android.AndroidDriver as AndroidDriver
import io.appium.java_client.android.AndroidKeyCode as AndroidKeyCode
It’s good that you recognized the underlined code as a potential problem!
pressKeyCode is underlined because the editor can’t find a direct reference to the function. I’m guessing it’s because of the way that the AndroidDriver class and its underlying libraries are imported. It’s nothing to be concerned about in this case, but definitely something to keep in mind when writing code in the future.
Tried different methods to enter text into an object but still its taking more than an hour even its failing to enter the text. I had initialized the appium driver also but couldn’t find any solution. Please give me any other chances of sending values for mobile apps.