When record a mobile test & clicking an object on a screen, it does not move to the next screen

Hello all,
Now, i am trying katalon studio for mobile testing for the first time, I am trying to record a test, where I should click on a button to go to the next screen. I select that object & click ‘Tap’ in the available actions section, the step is recorded in the recorded actions, but nothing happens, the screen does not change to the following one on the physical device or in the recorder device view. I tried this multiple times. Also the same happens when I run that test case, the step is marked passed but the button is not clicked on the device & not moved to the next screen

here is the script:

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 static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
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.testng.keyword.TestNGBuiltinKeywords as TestNGKW
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 com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

Mobile.startApplication('C:\\Users\\hp 2023\\Downloads\\app-release.apk', true)
Mobile.tap(findTestObject('Object Repository/android.widget.ImageView'), 0) // click get started button
//Mobile.closeApplication()

1 Like

So what happens if you give the tap method a couple of seconds to react, so instead of 0 you set it to 5 or 10?

I did not understand what that input which is 0, I will try to increase it as u said & will see

i set time out to 20 & run the test case, and same problem, the action of clicking ‘get started’ button appeared passed, but it did not execute on the real device. and the problem happens also when recording the test. the mobile app is flutter, and I am not installing latest version of appuim, is that related?

The “0” in the tap method is a “timeOut”. Katalon uses the value to determine the maximum time to take to try your process. If Katalon can finish your process before your set “timeOut”, then it proceeds on to your next command immediately. If it cannot process your command before your set “timeOut”, then it errors out or fails, depending on your default “failureHandling” setting in your project Preferences.

As for your tap not working, do you have to tap in a specific area of the object, such that you don’t have that specific part of the object