Search code examples
seleniumappiumappium-androiddesiredcapabilities

How to use existing app session in Appium


I want to use an existing app session while run my Appium test. So is there any way or Capabilities which i need to add in my code so it can continue the existing app session.

I work around to find a solution over the internet unfortunately I'm not able to find it.


Solution

  • I got the solution regarding what i intend to do. I've added below capability in my code :

    capabilities.setCapability("noReset", true);
    

    Now I'm able to carry the existing session.

    e.g. Manually I've opened flipkart app and added one item in cart and closed the app. Now if I'm opening the app using Appium. Now I'm able to see that already added item in the cart.