capabilities.setCapability("ignoreUnimportantViews",true); Calls the setCompressedLayoutHierarchy() uiautomator function. This capability can speed up test execution, since Accessibility commands will run faster ignoring some elements. The ignored elements will not be findable, which is why this capability has Read More
Categories : Appium
Posted by Sumeet Panjabi
No Comments
capabilities.setCapability("isHeadless", true); Set this capability to true to run emulators or simulators in headless mode. This means that the UI will not be displayed and does not need to be rendered. For iOS, this is Read More
Categories : Appium
Posted by Rajesh Chaudhary
No Comments
capabilities.setCapabilities("printPageSourceOnFindFailure",true); When a find operation fails, print the current page source. Useful for debugging and diagnosing test failures Value = true/false Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
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 Read More
Categories : Appium
Posted by Shah Nawaz
No Comments
capabilities.setCapabilities("skipDeviceInitialization",true); Skip device initialization on Android. This includes installation and running of the Settings app, and permission setting. Can be used to improve startup performance when the device was previously used for automation and it’s Read More
Categories : Appium
Posted by Shibu Panda
No Comments
capabilities.setCapabilities("useJSONSource",true); Get JSON source from WDA and parse into XML on the Appium server. This can be much faster, especially on large apps. Read More
Categories : Appium
Posted by Shah Nawaz
No Comments
capability.setCapability("derivedDataPath","path"); Use along with “usePrebuiltWDA” capability and choose where to search for the existing WDA app. If the capability is not set then Xcode will store the derived data in the default root taken from Read More
Categories : Appium
Posted by Shibu Panda
No Comments
srcFile=element.getScreenshotAs(OutputType.FILE); Description When working in an appium automation project, we often need to take a screenshot on test failure. Appium provides a way to take screenshot with the help of getScreenshotAs() interface Read More
Categories : Appium
Posted by JOHN MOSES Y
No Comments
driver.closeApp(); OR capabilities.setCapability("noReset","false"); Description This capability is used when we want to reset app state between sessions (Android: uninstall app before new session). Its default Value is False. OR Using closeApp() method we can close Read More
Categories : Appium
Posted by Adithya Shetty
No Comments
driver.manage().logs().getAvailableLogTypes()); driver.manage().logs().get("logcat"); Description An Android device or emulator records detailed system logs, which can sometimes contain information which is pertinent to a test. Maybe our test failed and we want to see if our app Read More
Categories : Appium
Posted by Gaurav Singh
No Comments