Reputation: 19
Anyone can please provide me a better solution for the errors I am mentioning down.As i have already tried so many solutions from every possible website. Refer the image and please help me with the solution
Upvotes: 0
Views: 2072
Reputation: 215
Can you make sure you run below commands from terminal before taking screenshots.
adb root
adb remount
This fixed the issue for me. Also make sure a test is not already running on the device.
Upvotes: 0
Reputation: 313
Check if you have an active Appium connection to the device. When you have an active Appium connection to your device / emulator, it will lock the ui-automator resources. So you will not be able to take a snapshot at that time.
Upvotes: 1