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
2 answers

How to set timeout for chromedriver Appium

I am using python-appium client for my hybrid android application, how I can set timeout for exceptions, like NoSuchElement exception and etc., because if I switch to WebView and there is exception Appium python client don't raise exception and just…
1
vote
1 answer

Webdriverio iOS restart app with processArguments

I have iOS app which implemented UI testing with Appium. And when I want to restart app with this code, processArguments are lost. Could anyone tell me how to restart app without losing processArguments or pass processArguments when restart…
1
vote
2 answers

Simulate Bluetooth "Out of range" scenarios for test automation

I've an Android phone which needs to be paired with an embedded device (Qt based application on Linux) which we test. I've automated the basic scenarios using ADB commands, to turn on/off BT on the phone, and check the status on the embedded device…
Sumantha
  • 44
  • 5
1
vote
0 answers

A new session could not be created. (Original error: The following desired capabilities are required, but were not provided: platformName,deviceName)"

Here is my Java code: import java.io.File; import java.net.MalformedURLException; import java.net.URL; import io.appium.java_client.android.AndroidDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.Test; …
1
vote
0 answers

I faced some implicit wait issues using python code in app automation on BrowserSatcks cloud platform

How to solve this issue, I have used some cloud-based real device platforms on those I used the same code for the automation but in this platform, the code is not working the major issue it is showing is as I mentioned. error :…
1
vote
0 answers

org.openqa.selenium.WebDriverException for appium on selenium4 for getScreenshotAs method

I am trying to take screenshot using the getScreenshotAs method using selenium 4 remotely on saucelabs(appium). It is working absolutely fine locally whereas running remotely, I am getting the following…
user110009
  • 25
  • 5
1
vote
1 answer

Appium keep on asking "Failed to create session. You must include a platformName capability"

I just try to start session the appium inspector yet it doesn't work as always. I have done all the stuff needed for running those app but still not working. here's the sign: "Failed to create session. You must include a platformName capability" and…
1
vote
1 answer

org.openqa.selenium.UnsupportedCommandException for appium (devices) for sauce labs

I am trying to upgrade from Selenium 3 to Selenium 4. The capabilities and everything works fine for all the browsers remotely on sauce labs and works well even on local but when it comes to devices(Android Ipad/Mobile and iOS Ipad/Mobile) I am…
user110009
  • 25
  • 5
1
vote
0 answers

Encountered "java.lang.SecurityException: Permission Denial: starting Intent'. " on real device, but not on emulator

I think the issue java.lang.SecurityException: Permission Denial: starting Intent'. has been addressed in several posts, but my circumstances are different. I am testing a 3rd party mobile app (so adding the android:exported="true" is out of the…
tester ABC
  • 11
  • 6
1
vote
0 answers

How to identify Android buttons and objects with Appium Inspector

I'm trying to identify different button on a PDA\telephone using Appium Inspector. The problem that I have is that I have 12 buttons on the menu and they all have the same resource ID. At this point in time I'm using the Xpath to identify some of…
1
vote
0 answers

Switch webdriverIO between Desktop Browser and Mobile App

I want automate a scenario which starts with Desktop chrome after performing certain action need to switch to Mobile app and validate the data in the Mobile App. Currently Im using separate scenario to perform these test. Is it possible to load 2…
Muthu
  • 11
  • 1
1
vote
1 answer

How to use resource id in Appium

I am testing a mobile app which doesn't have right set locators in it, so i can use only "resource-id" from appium.webdriver.common.appiumby import AppiumBy # Locators profile_btn = (AppiumBy.ID,…
Tigran
  • 19
  • 4
1
vote
1 answer

Webdriverio and Appium, can't attach inspector and troubles with sessions

I'm new with Appium and WebdriverIO, I have an app created (a .zip file) and I want to test it with those 2 frameworks. TL:DR - just go to the fourth code block. I followed some tutorials and created a project containing config files test…
Don Diego
  • 1,309
  • 3
  • 23
  • 46
1
vote
1 answer

How to retrieve SMS confirmation code in Appium

I am running tests to an app with Appium and TestNG. However, I must first log in to the app which requires an SMS confirmation code to be entered. Is there any way I can include this in my code? Some way to intercept that SMS code and enter it in…
theai.1
  • 21
  • 4
1
vote
1 answer

Appium Invalid Session exception

I am working on automating testcases for a mobile application. Things were working fine but now suddenly I am getting the following exception Stacktrace:io.appium.uiautomator2.common.exceptions.NoSuchDriverException: The session identified by…
Umer Saeed
  • 63
  • 4
1 2 3
99
100