While running my automation script it is getting failed in one page and at the end of execution Appium is pressing home button. While debugging the issue i have followed the below procedure to verify whether my xpath is correct or not:
- Pressed the app killer button and selected my desired app.
- Open the UI automator to take the device screenshot.
- Click on Devicescreenshot icon and the below error message is displayed.
Then I have killed the app and navigated to the same page where i have got the issue and then clicked on Device Screenshot icon and was able to take the screenshot properly.
I have verified the xpath and all of them are correct.