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

Author: Sridatta Pani

Orientation Of device / Uncategorized

How to check if current Orientation is LandScape?

public boolean isCurrentOrientationLandScape(AppiumDriver driver) { String ort = driver.getOrientation().name(); ScreenOrientation orientation = ScreenOrientation.valueOf(ort); if (orientation == ScreenOrientation.LANDSCAPE) { return true; } else { return false; } }

Keystrokes using appium / Uncategorized

Maximum frequency of keystrokes

Code: caps.setCapability(“maxTypingFrequency”, 15); Maximum frequency of keystrokes for typing and clearing a text field. If your tests are failing because of typing errors, you may want to adjust this. Values …

Appium Basic Capability / Uncategorized

What is dontStopAppOnReset Capabilities?

Doesn’t stop the process of the app under test, before starting the app using adb. If the app under test is created by another anchor app, setting this false, allows …

Different type of Gesture using appium / Tips & Tricks

How to Swipe Left on the Element?

public void swipeLeftOnElement(WebElement element) { Point point = element.getLocation(); Dimension eleSize = element.getSize(); int centerX = point.getX() + (eleSize.getWidth() / 2); int centerY = point.getY() + (eleSize.getHeight() / 2); int …

Browser Automation Using Appium

How to refresh a web-page using appium?

By this script we can refresh or reload the webPage. driver.refresh();

Opearation on Elements using Appium

How to find X and Y co-ordinate of a particular element?

WebElement acceptButton= driver.findElement(By.xpath(“//android.widget.Button[@resource-id=’com.pcloudy.appiumdemo:id/accept’]”)); By this below script we can get the xcordinate of the particular element acceptButton.getLocation().getX(); By this below script we can get the Ycordinate of the particular element …

Aditional Functionality By pCloudy Appium

How to disable wifi in local Android device using appium in Pcloudy?

driver.executeScript(“pCloudy_executeAdbCommand”, “adb shell am startservice –user 0 -n com.pcloudy.services/.wifiservice –ei \”op\” 1″);

Aditional Functionality By pCloudy Appium

How to enable wifi in local Android device using appium in pcloudy?

String cmd1=”adb shell am startservice –user 0 -n com.pcloudy.services/.wifiservice –ei \”op\” 0″; driver.executeScript(“pCloudy_executeAdbCommand”, cmd1);

Device Logs and Page source

How to get the page source when a find operation fails in Appium?

capabilities.setCapabilities(“printPageSourceOnFindFailure”,true); When a find operation fails, print the current page source. Useful for debugging and diagnosing test failures Value = true/false

Wifi and netwok Functionallity Using appium

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 …

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