Questions tagged [appium-android]

An open-source test automation tool for use with native and hybrid mobile apps

Appium is an open source test automation tool used for automating native,web and hybrid mobile applications. It drives iOS and Android apps using the WebDriver JSON wire protocol.

As per Appium 1.6.0 release, Windows desktop application testing joins the functionality list.

It provided a very helpful functionality for locating the elements. This is provided by Appium Inspector.

Please read the documentation and tutorials.

For additional help, please use the following resources:

  • Discourse Discussion Group
  • Appium Chat
  • Documentation
1351 questions
3
votes
3 answers

Unable To get Activity name from adb command Android 10

I'm trying to get activity name for current focused app on the device by running this command: adb shell "dumpsys window windows | grep -E 'mCurrentFocusApp|mFocusedApp'" It works on older phone with Android 6.0 but on Pixel XL running Android 10…
user12394138
  • 31
  • 1
  • 2
3
votes
1 answer

AndroidFindBy ID or XPATH

Wondering if this is possible. We have our RC that has no ID for an XML layout element. In our Develop branch we add ID to the layout but haven't pulled it in yet. For AndroidFindBycan I use XPATH for RC and ID for Develop? @AndroidFindBy(id =…
JPM
  • 9,077
  • 13
  • 78
  • 137
3
votes
0 answers

Appium: Starting an android app using an intent?

Does anyone know if it's possible to start an android app with appium using just the intentAction and URL as optionalIntentArguments? This is to test against an expo app in local dev mode running in the Expo client app; I am basically copying what…
user82116
  • 418
  • 5
  • 12
3
votes
3 answers

The application at does not exist or is not accessible using Appium

I'm learning appium using eclipse and got stuck on launching my emulator. I tried different things such as moving the file around in the folder structure but I keep getting file does not exist or is not accessible I tried searching for the answer…
user3329818
  • 31
  • 1
  • 6
3
votes
1 answer

How to resolve adb: connect error for write : closed

I am getting the list of adb devices. But when I try to install the apk I get error: connect error for write: closed Image:
Bibin Roy
  • 53
  • 1
  • 1
  • 12
3
votes
1 answer

Take Screenshots on Test Fails

I'm trying to take screenshots when a test fails and then add them to my report. Currently it takes a screenshot when it opens up the application again to do the extent.flush(); in my afterMethod(). My screenshot class is here: public class…
Tom Cockram
  • 217
  • 2
  • 16
3
votes
1 answer

How to make appium session remotely with a device which is on another machine

Use Case I have one mobile device connected on a laptop whose IP is 10.132.222.23. Now I want to make appium session with the device from another laptop. This is possible when we do it from Appium Desktop, but I want to explore a command line option…
pankaj mishra
  • 2,555
  • 2
  • 17
  • 31
3
votes
2 answers

What kind of driver should I use for appium test scrips

I have started learning appium recently, and I created some basic tests to launch an application, I referred a lot of guides and tutorials before creating the test scrips. Something I noticed was that different individuals has used different…
Nimesh
  • 239
  • 2
  • 4
  • 14
3
votes
1 answer

How to retreive original folder contents from Appium pull_folder output?

Based on the appium doc at http://appium.io/docs/en/commands/device/files/pull-folder/ a folder can be pulled following way folder_base64 = self.driver.pull_folder('/path/to/device/foo.bar') As per the doc the response folder_base64 is : "A string…
Nafeez Quraishi
  • 5,380
  • 2
  • 27
  • 34
3
votes
2 answers

Can I change the appium driver capabilities in execution?

I'm writing automation test for a android native appilcation,but some parts of the application working only with the capabilty //cap.setCapability("automationName", "uiautomator2"); cap.setCapability("automationName", "uiautomator"); and…
Camilo Avila
  • 83
  • 2
  • 6
3
votes
1 answer

Appium: How can I located RecyclerView to locate an Element

I am unable to locate Recycler view using Appium When I try to locate the RecyclerView, the Appium server just halts. In this image (ListView) I want to check the checkbox which is highlighted in the image. The approach I am using is…
Shri
  • 31
  • 3
3
votes
0 answers

Unable to launch app on android real device ,appium server getting closed automatically

**Environment**  - java client build version : 6.1.0  - Appium server version : 1.7.1  - Desktop OS/version used to run Appium if necessary: Windows 7  - Node.js version : 6.4.1  - Mobile platform/version under test: Android/ 8.1.0  - Real device or…
3
votes
1 answer

How to simulate taking picture and give input to the app?

I have a app in which i need to scan the QR code. Taking the picture from the app is not feasible as i need to run the app in multiple devices at once and it require human presence. How can i provide the QR code image/data to the app without…
Suban Dhyako
  • 2,436
  • 4
  • 16
  • 38
3
votes
1 answer

How to click/tap on a link embedded in a text message using Appium?

Please refer to the below screenshot. It shows an SMS message in Android Messages that includes an embedded link. While the attribute for the associated android.widget.TextView class is clickable, manual tests show that clicking on the regular text…
mc-sm9
  • 149
  • 1
  • 7
3
votes
1 answer

How to use AndroidDriver or IOSDriver without DesiredCapabilities(which is deprecated)?

AndroidDriver and IOSDriver require to have DesiredCapabilities as input. Now, as this is deprecated how can I use these drivers? My code example: DesiredCapabilities cap = new DesiredCapabilities(); cap.SetCapability("deviceName",…
Ilja
  • 31
  • 2