Orientation

Code: caps.setCapability(“androidNaturalOrientation”, true); “Some devices are meant to be used primarily in a widescreen orientation. For this set of devices, it might make more sense to think of the default …

Allow Security Relaxation

Code: caps.setCapability(“allowInsecurity”, “shell”); “Allows security relaxation only for specific functionalities. For example: You can allow relaxed security just for the android shell” Value: Shell / fastboot

How Swipe UP on the Element?

public void swipeUPOnElement(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 …

How to set the Event timings in appium?

capabilities.setCapabilites(“eventTiming”=true) Enable or disable Appium’s ability to report timing data for various internal events (e.g., the start and end of each command). To enable, set to true. The timing data …