How to enable wifi using appium in android local device ?

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 …

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 …

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.