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

org.openqa.selenium.UnsupportedCommandException (Appium + opencv image comparison)

I have tried this example. https://github.com/cloudgrey-io/appiumpro/blob/master/java/src/test/java/Edition098_Visual_Testing_1.java with opencv but it always throws org.openqa.selenium.UnsupportedCommandException: The requested resource could not…
1
vote
0 answers

How to use driver object in javascript globally in appium

I have to test android and ios app, I'm using wdio test runner. I have wdio.config file to test the apps. Using javascript mocha to write test. I want to use driver instance so can access url,clear() function in my test script. I cannot use driver…
vi kr
  • 11
  • 1
1
vote
1 answer

The emulator process for AVD has terminated (Android studio)

I tried as in python . But the emulator has terminated .
1
vote
0 answers

How to find elements from a Unity based (Android) app?

I was study of applying automation tests on a Unity based (Android) app/game. The thing is, through Appium and Appium Inspector We cannot see any elements on my device screen, so I don’t know how to get the id’s correctly. Can someone provide any…
1
vote
0 answers

Remote ADB server: error: more than one device/emulator

I perform remote mobile tests in the appium container. On my computer I have an appium container based on the docker image appium/appium:v1.22.3-p1 with java 17 and maven 3.6.3. I have an adb server running on a remote linux machine (on the local…
Rozmaryn
  • 251
  • 1
  • 5
  • 10
1
vote
4 answers

Appium Android - take screenshot returns "Illegal base64 character a"

I have Androud telephone connected via USB cable to my computer and I want to take screenshot when test fails: I have the following code that returns error: thisline returns error "File source = driver.getScreenshotAs(OutputType.FILE);" - is there…
javabeginer
  • 1
  • 1
  • 6
1
vote
3 answers

I need to use Appium 2 for CodeceptJS mobile tests

Because latest iOS is making problems with Appium 1.x, Appium team is no longer supporting it, and Appium 2 is working ok - I need to use v2... CodeceptJS 3.3.x is using Appium 1.x now and because of the '/wd/path' used by default in CodeceptJS…
1
vote
0 answers

Karate-mobile - click the input is not working

The input click event is not working during the mobile android test.And driver.optional('@Skip').click() - this line works on text link. Input click with the placeholder element is not working. need help to solve this. @nuego_login_test Feature:…
dinesh
  • 61
  • 5
1
vote
0 answers

How to scroll bottom and click the button using karate-appium?

I have a button named just the symbol ">". I want to click the button to move next window. I tried the following code, but it's not working. And driver.script("mobile: scroll", { "strategy" : "accessibility id", "selector": ">" }) And…
dinesh
  • 61
  • 5
1
vote
1 answer

Original error: Failure [INSTALL_FAILED_OLDER_SDK]

When I run karate testing with appium it gives this error I installed : Android-studio appium node npm Original error: pkg: /data/local/tmp/appium_cache/31bc49edb643a4a324f739a34babfd1e6d522a16.apk\r\nFailure [INSTALL_FAILED_OLDER_SDK]"}, Full…
dinesh
  • 61
  • 5
1
vote
0 answers

karate mobile testing with a real device, not an emulator. I can't connect to a real device

@android_sample_test Feature: Simple test with appium Scenario: launch chrome in appium * configure driver = """ { type: 'android', webDriverPath : "/wd/hub", start: true, httpConfig : { readTimeout:…
dinesh
  • 61
  • 5
1
vote
0 answers

Getting "ReferenceError: browser is not defined" in Appium framework for tvOS - how to define the browser?

I have a question about the use of an "expect().toExist() command (part of the "expect-webdriverio" package). I am attempting to use it in an appium test suite run on the mocha framework - we are testing an application on tvOS (not on any web…
1
vote
0 answers

Getting " Failed to create session. Request timed out" in Appium Inspector for iOS testing

I tried inspecting my iOS app on appium inspector, my WebDriver agent is also building successfully on xcode . My Xcode version is 13.4.1 iOS =15.5 device = iPhone 13 Pro Java Code: XCUITestOptions options = new…
Azpect
  • 43
  • 6
1
vote
1 answer

Time where minutes are not counted in a C# assertion snippet for an appium test

I am attempting to ensure that hours are not off minutes I am not too concerned with but can't seem to break them off the code. Is there a way to allow the assertion to be 10 minutes off? public void DeviceTimeAssertion() { …
HANSTKE
  • 47
  • 6
1
vote
1 answer

Precise scrolling in Android native app using Appium/WebdriverIO

The problem I'm trying to perform precise scrolling in an Android native app using Appium & WebdriverIO. The end goal is to perform snapshot testing (comparing screenshots) in Android views that contain scrollable content (e.g:…