There are many times we have to reset application at some point. Lets take the example of browser in the mobile device. Suppose that we are navigating in the application and at some point on clicking the link it should opened in the browser and if there are more than one browser installed in your mobile device and after selecting the browser, you tapped on always button. Now everytime when you click on the same link in the application it will always open in same browser. According to the test case, you have to check the screen in every browser, then you should first reset the application so that it should come to default and then select the browser in which you want to open the link.
Appium provides a method through which we can easily reset our application.
resetApp()
This method will only reset the currently running app for the current session.
0 Comment(s)