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
1 answer

WinAppDriver can't connect to application on Windows

I'm getting an error on the line "driver = webdriver.Remote(....)" in the following code: import unittest from appium import webdriver import os os.startfile('C:\\Program Files (x86)\\Windows Application Driver\\WinAppDriver.exe') desired_caps =…
1
vote
0 answers

Appium: invalid argument: Unsupported locator strategy: accessibility id

I am testing my Expo (React native) app using Appium and Browser stack, Following is my configuration for BrowserStack and Appium: // ============ // Specs // ============ config.specs = [ './tests/specs/**/app*.spec.ts', ]; config.exclude = [ …
Dinesh Kachhot
  • 385
  • 5
  • 15
1
vote
5 answers

Error installing uiautomator2 driver with Appium

I am pretty new to appium and I tried installing the uiautomator2 driver to the latest appium version 2.0.0-beta.41 via the command appium driver install uiautomator2 I always get this output: > STDERR: npm ERR! code 1 npm ERR! path…
Scuba
  • 83
  • 1
  • 6
1
vote
0 answers

Is it possible that element's name and accessibility id in Appium Inspector have different values?

I am using Appium Inspector to test iOS app but instead of accessibility ids, because some naming reasons, I must use "name" field to get app elements. It seams that "name" field in Appium always get value of "accessibility id". Is there any way to…
Type2
  • 11
  • 2
1
vote
2 answers

How to get elementid attribute of a node from appium programatically?

In Appium inspector when you hover over a selected element, there is an elementId attribute. Is there any way I can get this elementId programatically maybe generate it from the xml tree or adb shell commands. Also, I found very scarce information…
1
vote
1 answer

Is it possible to use a locator for a webpage in an app that uses a webview?

I need to develop regression test automation for the app that switches to webview using selenium, appium. Can the locator used in the web page be used as it is in the app web view environment? thank you
김희석
  • 13
  • 3
1
vote
1 answer

Getting error "org/openqa/selenium/interactions/HasInputDevices"

I am trying to build a java framework for Appium. When I run the tests I get following error: java.lang.NoClassDefFoundError: org/openqa/selenium/interactions/HasInputDevices I have not added any additional selenium dependency at all. Even if I add…
Bilal
  • 558
  • 8
  • 18
1
vote
0 answers

Appium Web Driver Agent installation failure on iOS 15.5 with Xcode 13.4.1 and Appium 1.22.3

I am trying run automation on real device with iOS 15.5. I am not able to install the webdriveragent on the device. I have followed the steps mentioned in XCUITest Real Devices I can manually sign and build using Xcode but while using Appium…
1
vote
1 answer

WebDriverIO ReferenceError $ Not defined error

I'm using Appium to write a simple automated test with WebDriverIO. I want to visit Google.com, and click on the sign in button. However, I can't seem to be able to use the $ selector. Here's my code: const webdriverio =…
0xI
  • 11
  • 3
1
vote
0 answers

How to find element if part of selector is dynamic through WebdriverIO + Appium?

I'm working on mobile automation project (Using webdriverio, appium and appium-youiengine-driver https://github.com/YOU-i-Labs/appium-youiengine-driver ) I need a find an element, which selector (rntestid) one part is dynamic, other part is…
1
vote
1 answer

Appium Server is not getting started in CircleCI MacOS image

I am trying to run my Appium test on CircleCI Mac OS image on an iPhone simulator. Code is written in Python with Behave. Here is my config.yml file version: 2.1 orbs: macos: circleci/macos@2.2.0 jobs: example-job: macos: xcode:…
Naseem
  • 911
  • 5
  • 18
  • 48
1
vote
0 answers

appium: cannot locate answer button on whatsapp call

I have scenario that some friend call to my device. When the call starting I have this little window from the upper side of the screen with 2 buttons and one of them is answer that I cannot locate using appium inspector. Any chance to click it…
Ran Pol
  • 85
  • 7
1
vote
1 answer

appium just flashes white Screen and does not open the app

I am facing a strange issue, appium just flashes white Screen and does not open the app and if i keep the app open manually in the emulator it works. This issue just happen all of sudden. My Observations on this issue. ( Not aware how to resolve…
user3194257
  • 39
  • 1
  • 4
1
vote
0 answers

Appium : xPath without text not identifying the object

Issue description: Using xpath with text description works fine, but using xpath having id is not working. [Sensitive parts being masked in picture and code] I'm trying to perform a mock project on a mobile app with latest appium version. Having…
Ramkumar
  • 116
  • 1
  • 11
1
vote
0 answers

Appium unable to locate iOS elements

I am not sure if this is a known issue or just something i’m having with my app. The issue is that the app i want to write tests for is showing unable to interact with the element for almost all the elements that behind multiple layers and i checked…
Sazer
  • 11
  • 1