Questions tagged [appium]

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

From appium.io:

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.

The basic goal for Appium is that you should be able to reuse code between platforms, and test on different programming language (Java, Javascript, Ruby, Python etc.), as mentioned before it leans on WebDriver implementation to achieve this.

Appium is basically an REST api server written in node.js which main purpose is to listen/receive command(s) from client (iOS, Android, hybrid, web), and execute them depending on platform.

After executing commands server receives respond back and return it to client.

Please read the documentation and tutorials.

For additional help, please use the following resources:

7754 questions
10
votes
3 answers

node_modules is not recognized as an internal or external command

I'm trying to write a test automation script using appium, jasmine, and perfecto mobile. I'm using the project cloned from the following URL with my own configuration Appium Javascript Example The problem is when I execute the npm test command I get…
Noel Omondi
  • 551
  • 1
  • 6
  • 23
10
votes
1 answer

Enable "show_touches" via appium or adb on android emulator

Is it possible to enable the "show_touches" options on android from appium? Or via adb? I have a appium test-script, which misbehaves. I have no Idea why, and I want to see where exactly it clicks.
Nathan
  • 7,099
  • 14
  • 61
  • 125
10
votes
2 answers

What are the `steps` mentioned while executing swipe() using Appium

This is just out of curiosity and cluelessness about the implementation of the method, I was going through the appium server logs for the java code : driver.swipe() Server Logs read : info: [debug] [BOOTSTRAP] [debug] Swiping from [x=540.0,…
Naman
  • 27,789
  • 26
  • 218
  • 353
10
votes
2 answers

Is it possible to run Appium iOS automated tests on Ubuntu?

I know that it's impossible to code the test on ubuntu since I need apple's xCode, but I would like to know if, once coded, it is possible to run the automated tests on Ubuntu. Thanks.
Cristian
  • 199
  • 2
  • 13
10
votes
1 answer

Navigate to Url of Hybrid Native App in Appium with Protractor

We're building a Hybrid Native Application (Cordova/Phonegap/Angular/Ionic). I'm writing end-to-end tests in Protractor. When run locally, they execute against the application served by the Ionic simulator (ionic serve). This works fine. I…
Joel Skrepnek
  • 1,651
  • 1
  • 13
  • 21
10
votes
10 answers

How to automate the android phone back button using appium

I am working on test automation for a hybrid mobile application on Android using Appium(python client library). I haven't been able to figure out any means to automate or create a gesture for using the Phone back button to go back to the previous…
Monica
  • 101
  • 1
  • 1
  • 4
10
votes
5 answers

Appium Error : A new session could not be created. (Original error: Did not get session redirect from Chromedriver)

I am trying to run my first test through Appium and getting the below error. org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Did not get session redirect from Chromedriver) (WARNING: The server…
Pon
  • 315
  • 1
  • 5
  • 10
9
votes
4 answers

.bin/authorize-ios not found when installing appium using npm install -g appium

When I try to install appium using npm install -g appium I get the message npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path /usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios npm ERR! errno -2 npm ERR! enoent ENOENT: no such…
MPereira
  • 113
  • 1
  • 8
9
votes
3 answers

Selecting an element on Appium / Android with Python that has same Class and Same Index of another element on UIAutomatorViewer

I am testing an app and on most of the screens I see that there are elements that have the same class "android.widget.TextView" with same index number "0". All other properties also same, only exceptions are the "text" and "bound". I have "Skip",…
nhrcpt
  • 862
  • 3
  • 21
  • 51
9
votes
4 answers

ClassCastException with new Appium-java TouchActions

I am getting below error with new TouchActions class. JDK version: 1.8 Appium: 1.7.2 appium.java-client.version: 6.0.0-BETA2 selenium.java.version: 3.8.1   TouchActions actions = new TouchActions(appiumDriver); Runtime Error:…
user2451016
  • 1,857
  • 3
  • 20
  • 44
9
votes
3 answers

Appium : How to launch app from Android For Work work profile

I need to launch an app which is in different work profile (Android For Work). If install the app in personal profile then I am able to launch the app from the personal profile on the same device. However, When I install the app only in the work…
Vinod
  • 956
  • 7
  • 15
9
votes
1 answer

React native + Appium, how to find an element

I'm trying (for too long...) to get appium working with react native, but can't seem to find any element. I'm using an emulator, Nexus 6, android 6.0, ubuntu, appium 1.6.0, RN 0.39.2. I'm trying to get the most basic example to work: //…
Shining Love Star
  • 5,734
  • 5
  • 39
  • 49
9
votes
5 answers

Can't click Allow button in permission dialog in Android using Appium

I am unable to tap on Deny or Allow buttons on the permissions dialog in Android using Appium+Java. Do I need to add any capabilities before going to tap on those buttons? Below is the code: DesiredCapabilities capabilities = new…
9
votes
3 answers

How to get Device name and App Version using Appium Driver

I am able to get the device android version using driver.getCapabilities().getCapability("platformVersion"); Simillarly how I will get device name and version of app. I tried with following but no…
Venkatesh G
  • 8,466
  • 4
  • 13
  • 22
9
votes
1 answer

Zoom action in android using appium-python-client

Does anybody know how to zoom an element in android via appium python client? I am currently using self.driver.zoom(self.element, percent) but this gives an error self.driver.zoom(self.element, percent) File…
vks
  • 67,027
  • 10
  • 91
  • 124