Skip to content
pCloudy – Question and Answers
Menu
    • Appium Tips and Tricks
    • Ask Question
    • Questions

Author: Shah Nawaz

Opearation on Elements using Appium

How to check if the element is displayed in Appium?

//Selecting Element MobileElement pElement = (MobileElement) driver.findElementByAccessibilityId(“SomeAccessibilityID”); //Checking if it displayed on screen. boolean isDisplayed = pElement.isDisplayed(); .

Keystrokes using appium

How to check if any option is enabled in Appium?

//Selecting an element MobileElement pElement = (MobileElement) driver.findElementByAccessibilityId(“SomeAccessibilityID”); //Checking if it(Element) is enabled or not. boolean isEnabled = pElement.isEnabled();

Opearation on Elements using Appium

How to check if an element is selected in Appium?

MobileElement pElement = (MobileElement) driver.findElementByAccessibilityId(“Any Access Id”); //Check if element is selected. boolean isSelected = pElement.isSelected();

Opearation on Elements using Appium

How to go to forward page using Appium?

driver.forward();

Conetext Switching and Screenshot Functionallity Using appium

How to change context in Appium?

//Getting all the context. Set pContext = driver.getContextHandles(); //Setting it to array to change it. driver.context(pContext.toArray()[1]); //Changing it to Native App Context. driver.context(“NATIVE_APP”);

Conetext Switching and Screenshot Functionallity Using appium

How to get all context in the Appium?

//Get the context of the appium in which it is supporting. For example [NATIVE_APP, CHROMIUM] Set pContext = driver.getContextHandles();

Device Logs and Page source

How to get logs using Appium?

Set Plog = driver.manage().logs().getAvailableLogTypes();

Conetext Switching and Screenshot Functionallity Using appium

How to get the context of the app in Appium?

//It shows the context of the app or browser. String pContext = driver.getContext();

Orientation Of device

How to get the current orientation of the device in Appium?

ScreenOrientation pOrientation = driver.getOrientation(); //Printing the orientation. System.out.println(pOrientation);

Uncategorized

How to change orientation of the device in Appium?

//To rotate the screen Landscape. driver.rotate(ScreenOrientation.LANDSCAPE);

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 we can do interrupt testing?
  • How many devices can I connect in each plan?
  • Is it possible to run Automation on Android and iOS devices at the same time?
Copyright © 2025 pCloudy - Question and Answers – All Rights Reserved