How to take screenshot if any error occur in Appium? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to take screenshot if any error ...

How to take screenshot if any error occur in Appium?


capabilities.setCapabilities("screenShotOnError", true);
Take screenshots when elements are not found. Screenshots are stored in the directory specified by the "diagnosticsDirectoryLocation" capability. Value = true/False

Leave a Reply

Your email address will not be published. Required fields are marked *