Closing existing app doesn't work

Hi all,

I try with your above steps and see that the keyword Mobile.closeApplication(FailureHandling.STOP_ON_FAILURE) does NOT close the application after open the application. However, I found a way to close the application and it works from my side:

Steps

  1. Import need package: This package is used to get appium driver from Katalon
    import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory

  2. Get current driver after open app:
    Mobile.startExistingApplication(‘com.dencreak.dlcalculator’)
    driver = MobileDriverFactory.getDriver()

3.Perform your steps with automation:
// your customize

4.Quit your app by below comment
driver.resetApp()

1 Like