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
1
vote
0 answers

ExamplesTest driver config / start failed: webdriver session create status 500 (karate with appium)

Scenario: launch chrome in appium * configure driver = """ { type: 'android', webDriverPath : "/wd/hub", start: true, httpConfig : { readTimeout: 120000 } } """ * def desiredConfig = """ { "newCommandTimeout" :…
Yabesh
  • 109
  • 2
  • 9
1
vote
0 answers

Mobile Element cannot be used with Appium (RemoteWebElement casting problem)

I am using Appium Java Client 7.6.0 and Appium Server GUI and I try to execute automated test cases against a virtual device (Android 10.0 by using Android Studio) I get the exception below when I execute my code with Mobile Element for locators. It…
1
vote
1 answer

An unknown server-side error occurred while processing the command. Original error: Cannot read properties of undefined (reading 'match')

I just started mobile automation testing and I'm trying to write tests for android on Android Studio with Appium, however I think I just did something wrong in configuration process. I was getting some other errors and these are the things I've done…
1
vote
0 answers

Eclipse error for mobile automation script - Appium io.appium.java_client.service.local.InvalidServerInstanceException - Appium server version 2.0

[RemoteTestNG] detected TestNG version 6.14.3 [TestNGContentHandler] [WARN] It is strongly recommended to add "" at the top of your file, otherwise TestNG may fail or not work as expected. null FAILED CONFIGURATION: @BeforeClass…
Daxesh
  • 21
  • 2
1
vote
0 answers

Prevent tests from running in parallel with Appium/WebDriverIO

I am using Appium + WebDriverIO to run E2E tests for a React Native app. I have two capabilities. One for an Android emulator and one for an iOS simulator. I would like each of these capabilities to run in parallel on the two separate emulators, but…
twiz
  • 9,041
  • 8
  • 52
  • 84
1
vote
1 answer

Automatically launch Android emulator using WebDriverIO/Appium

I am using Appium + WebDriverIO to run E2E tests for a React Native app. When I run the tests on iOS, it will automatically launch the specified iOS simulator, but for Android I have to manually launch the emulator before running the tests. I am…
twiz
  • 9,041
  • 8
  • 52
  • 84
1
vote
1 answer

Clicking on an element, if present, in webdriverio

I'm using the latest Appium and webdriverion versions to test a native app, and what I need to do in my script is Click on a Button if it exists, but continue if it doesn't. So, if the Accept and Close button is present it will be clicked, and then…
Darren Harley
  • 75
  • 1
  • 18
1
vote
0 answers

Is there a way to not restart the app after each test in Appium with Python?

my code looks something like this: def goToDashboard(self): desired_cap = { "platformName": "Android", "platformVersion": "12", "deviceName": "Pixel 6", "appActivity": ".MainActivity", "appWaitActivity":…
1
vote
1 answer

Appium capability baseUrl is not working when trying to connect to remote server

I am trying to run my tests with a remote Appium server. Until now, I have always used the server in the same machine where the tests are being run, so I was using url + port (localhost:4723). The problem I am facing now is that the "baseUrl"…
1
vote
1 answer

unable to start uiautomatorviewer in windows due to classpath error

I am unable to start uiautomatorviewer due to below error: C:\Users\176226\AppData\Local\Android\Sdk\tools\bin>uiautomatorviewer -Djava.ext.dirs=..\lib\x86_64;..\lib is not supported. Use -classpath instead. Error: Could not create the Java Virtual…
1
vote
0 answers

Appium: Not able to click/find element after terminate and reactivate the app

I run automation tests with Appium version 1.22.3. I am trying to terminate the app and activate it again. When I switch back to flutter context, find/click element doesn't work. Flutter driver version is 1.4.0. Any suggestions…
Oks
  • 11
  • 1
1
vote
0 answers

Appium CodeceptJS - Mock sound recording - Android

I've been automating testing of mobile apps for a year now, but it's my first time, that a part of app records users' voice (it's actually a 3-step process, first recording of "silence" to calibrate to the background noise, second a prolonged…
Pristo
  • 11
  • 1
1
vote
1 answer

TestNG is only running first test on each class

I'm currently working on Intellij with Appium (7.3.0), Java (1.8) and TestNG (6.14.3), it was working fine on Friday and now it is only running the first test on each class like this I have two listeners before and after each method, I've tried…
1
vote
1 answer

Starting Appium programatically using javascript

I am using Javascript with Node.JS and WDIO and trying to start appium programatically in beforeTest hook and stop it in afterTest hook. I've tried doing so with child_process or some appium-service builder but without any success. Is there a…
vPilu
  • 11
  • 1
1
vote
1 answer

How to integrate an Appium flutter driver automation suite(Java) with BrowserStack?

I have created an Appium flutter driver automation project(Java) and I need to integrate it with browser stack. Any support on it?
Anosha
  • 21
  • 1