Skip to content
pCloudy – Question and Answers
Menu
    • Appium Tips and Tricks
    • Ask Question
    • Questions
    • search-results
    • test page

Author: Sridatta Pani

Wifi and netwok Functionallity Using appium

How to disable wifi in local Android device using appium?

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 …

Keystrokes using appium

How to open Notification bar in android devices using appium ?

((AndroidDriver) driver).openNotifications(); Description By using this above scripts we can open the notification bar in android devices.

Appium Basic Capability

How to find the capability using appium?

Capabilities TitleName = driver.getCapabilities(); System.out.println(TitleName);

Keystrokes using appium

How to know keyboard Shown or not?

boolean isKeyboardShown = ((HasDeviceDetails) driver).isKeyboardShown();

Keystrokes using appium

How to get the keyboard in appium ?

Keyboard KeyboardName = driver.getKeyboard(); System.out.println(KeyboardName);

Browser Automation Using Appium

How to find current url name in android device using appium?

String urlName = driver.getCurrentUrl(); System.out.println(urlName); ***UrlName provides Current url name***

Appium Basic Capability

How to find automation name using appium?

String AutomationName = driver.getAutomationName(); System.out.println(AutomationName); AutomationName provides Which automation engine to use Eg:-UiAutomator2 ,Appium is different types of automationName for Android.     XCUITest is for ios.

Appium Basic Capability

How to find the Platform Name using appium?

String PlatformName = driver.getPlatformName(); System.out.println(PlatformName); PlatformName gives in which platform we want to run our appium script. Eg:-Android,Ios

Some of the Advanced Tips of appium

How to repeat same test case again and again in testNG?

@Test(invocationCount = 100) **invocationCount is the number of repetation you want to give for your test**

Some of the Advanced Tips of appium

How to find performance data of an android device ?

List performanceData = ((HasSupportedPerformanceDataType) driver).getPerformanceData(“com.pcloudy.appiumdemo”, “cpuinfo”, 5); System.out.println(performanceData);

Posts navigation

Older posts
Newer posts

pCloudy PORTAL

  • Appium Tips and Tricks
  • Ask Question
  • Sample Code
  • Documentation
  • Videos
  • Blog
  • Training

POPULAR QUESTIONS

  • How to automate pull down refresh functionality ?
  • Can I use pCloudy to test web application on iOS device through automation?
  • How many devices can I connect in each plan?
  • How we can do interrupt testing?
  • Is it possible to run Automation on Android and iOS devices at the same time?
Copyright © 2025 pCloudy - Question and Answers – All Rights Reserved