adb shell dumpsys [-t timeout] [--help | -l | --skip services | service [arguments] | -c | -h] With the help of Dumpsys Command one can get the AppPackageName, AppActivities and element information as well. Read More
Categories : Appium
Posted by Jayesh Dalal
No Comments
capability.setCapability("noReset", true); capability.setCapability("fullReset", true); Full Reset Perform a complete clean and reset of device state before and after an automation session. No Reset Skips the reset of the devices before and after the user of Read More
Categories : Appium
Posted by Pooja Shah
No Comments
capability.setCapability("autoGrantPermissions",true); This Appium capability automatically determines which permissions your app requires and grant them to the app on install. Note: If the noReset capability is true, this capability doesn’t work. Value = true/false Read More
Categories : Appium
Posted by Gaurav Singh
No Comments
capability.setCapability("skipUnlock",true); capability.setCapability("skipServerInstallation",true); Skip unlocking of device when session starts using the SkipUnlock capability. If you are sure that your emulator/device is already unlocked, you can enable this desired capability in order to speed up your Read More
Categories : Appium
Posted by Pooja Shah
No Comments
capability.setCapability(“networkSpeed”, “gprs”); This capability will set the network condition which will be required for your test. For Ex. if you want to test your app in a cellular data condition you can mock it in Read More
Categories : Appium
Posted by Gaurav Singh
No Comments
Skip unlocking of the device when the session starts. If you are sure that your emulator/device is already unlocked, you can enable this desired capability in order to speed up your test runs. Valid Values true Read More
Categories : Appium
Posted by JOHN MOSES Y
No Comments
String adbCommand = "adb shell am broadcast -a io.appium.settings.wifi --es setstatus enable"; runCommand(adbCommand); public String runCommand(String command) throws InterruptedException, IOException { p = Runtime.getRuntime().exec(command); // get std output BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream())); String Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
String adbCommand = "adb shell am broadcast -a io.appium.settings.wifi --es setstatus disable"; runCommand(adbCommand); public String runCommand(String command) throws InterruptedException, IOException { p = Runtime.getRuntime().exec(command); // get std output BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream())); String Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
((AndroidDriver) driver).openNotifications(); Description By using this above scripts we can open the notification bar in android devices. Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
//Selecting Element MobileElement pElement = (MobileElement) driver.findElementByAccessibilityId("SomeAccessibilityID"); //Checking if it displayed on screen. boolean isDisplayed = pElement.isDisplayed(); . Read More
Categories : Appium
Posted by Shah Nawaz
No Comments