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