String PlatformName = driver.getPlatformName(); System.out.println(PlatformName); PlatformName gives in which platform we want to run our appium script. Eg:-Android,Ios Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
@Test(invocationCount = 100) **invocationCount is the number of repetation you want to give for your test** Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
List performanceData = ((HasSupportedPerformanceDataType) driver).getPerformanceData("com.pcloudy.appiumdemo", "cpuinfo", 5); System.out.println(performanceData); Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
For this we have to add two capabilities : capabilities.setCapability("unicodeKeyboard", true); capabilities.setCapability("resetKeybord", true); /***code for sending emoji***/ String ballEmoji = "\u26BD"; driver.findElement(By.xpath("//android.widget.EditText[@resource-id='com.pcloudy.pcloudykeystroke:id/txtrat']")).sendKeys(ballEmoji); Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
driver.manage().deleteCookieNamed("cookie_name"); Read More
Categories : Appium
Posted by Shah Nawaz
No Comments
driver.toggleAirplaneMode(); Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
boolean isLocked = driver.isDeviceLocked(); Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
DPI (Dots per Inch) is a value that Android uses to determine the ideal size of images and app icons to show on the screen. This value can be changed to get a larger, zoomed-in Read More
Categories : Appium
Posted by Ahmad Sayeed
No Comments
Simply use this method. Provide your package name as an argument and it will give you “true” if the application is already installed else “false”. (only applicable on pCloudy) private boolean isMyAppInstalled(AppiumDriver<WebElement> driver, String packageName) Read More
Categories : Appium
Posted by Ahmad Sayeed
No Comments