Newest appium Questions

Q&A for professional and enthusiast programmers

A new session could not be created exception occurs

i will try to open chrome browser & automate the facebook (try to open any site so that i can check my appium configuration is ok or not) After execution of following code got exception as, @...

Each run appium plays prompted to install a window appium setting app, excuse me is there a way to skip or silence

Each run appium plays prompted to install a window appium setting app, excuse me is there a way to skip or silence? enter image description here enter image description here

Unable to run appium in ubuntu for an Android project in Eclipse

This is my java class, and i tried to run Appium with console in ubuntu but it was unable to create new remote session due to desired capabilities (view screenshot) import java.net....

Appium(Script Recording Tool)

I have created an automation script for android device (Android Version 4.4).I want to record my whole script in a form of video.I surrfed on the net and found 2 toools (OpMirror Sender and Reciver), ...

How can i run virtual device in OpenSTF

I am new to Openstf i have added openstf plugin in Jenkin How can i invoke Virtual device through openstf for running appium test

Need help to implement record video on android device under test. Start in setup() and Stop in quit() method after tests

I have appium automated tests configured for multiple physical android devices and I select the device in setup() by passing device id from testNG.xml as parameter. I am using Java, testNG, Appium for ...

Duplicate files copied in APK META-INF/LICENSE error showing while trying to run test case

Errors log are below: Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. com.android.build.api.transform.TransformException: com.android.builder.packaging....

Unable to install the app and launch the browser one after other on iOS simulator using Appium

I am fairly new to Appium world. I want to install an app on iOS simulator and after it is done, Safari should be launched. However, I am not getting how to achieve this. I tried multiple ways, but ...

Error: simctl error running 'create': Invalid device type: on appium and real ios device

Unable to execute tests on MAC OS Sierra. Below is the environment information and the code snippets. In addition, you can find the error logs from appium. Any pointers on what information needs to be ...

Scroll in iOS Native app using Appium

I need to scroll down the page until specified condition is meet on iOS App on actual device I have achieved scrolling on Android, but trying to use the same login on iOS. But not working. Android ...

Android 6.x Webview undefined when switching context

I am trying to automate mobile app in android (6.0.1) using appium. i am getting error as No such context found. While switching from Native to Webview,I am getting Webview as ...

Using Appium and Espresso together a bad idea?

I'm a fanboy of Test-pyramid application in software development and want the same to be applied in Mobile software development as well. For this, I'm desiring to leverage both Appium (for functional ...

Handling gestures and swiping using Selenium and Appium using C#

I am writing my mobile testing using Appium and Selenium. I would like to automate gestures ans swipe and I've found no tutorial that addresses this using C#, all are in Java. This tutorial seems very ...

Android Uiautomator doesn't see elements inside game application

I'm trying to test android game apps from play store. Using Java+Appium. For detecting elements I'm using uiautomatorviewer. He see all andoid menu.. But he doesnt see separated elements inside the ...

The method setCapability(String, String) is undefined for the type DesiredCapabilities

The method setCapability(String, String) is undefined for the type DesiredCapabilitiesenter image description here

Issue with ideviceinstaller while launching app into real device using Appium

I'm trying to launch the app in real device using java code Initially its working fine and after when i tried to launch the app appium is throwing exception. > [debug] [iOS] Creating iDevice ...

Error obtaining UI hierarchy Reason: Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist

When I try to capture screen on UiAutomator during call, it shows this error Error obtaining UI hierarchy Reason: Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: ...

else condition not working in appium

I'm trying to write appium test script for android application, in one case waiting for a dialog box with Yes and No button, that dialog box won't appear always, if the dialog box appear I want to ...

UnreachableBrowserException in Appium while trying to initiate AndroidDriver

I am getting UnreachableBrowserException while trying to instantiate AndroidDriver for Appium. I have Started appium server from java code. Here is the code to start appium server - private static ...

IntelliJ cannot run my TestNG project

I have a maven project with TestNG. I used to use Eclipse and moved to IntelliJ today and think I configured all correctly. But when I run the project in IntelliJ, it cannot be run with below error ...

APPIUM - explicit wait doesn't work for AndroidElement?

I'm newbie to Appium, trying to find element by UiSelector after wait until it's available public boolean uiSelectorIsDisplayed(AndroidDriver driver, String method, String value, int waitTime) throws ...

Appium : [Error: Could not detect Mac OS X Version from sw_vers output: '10.12.2 ']

I am new to Appium. I am using 1.5.3 on my mac. I am getting below error. Can someone please help. Error: Could not detect Mac OS X Version from sw_vers output: '10.12.2' tried the solution from ...

Appium:Unable to proceed with automation for any apk. Getting activity never started error

Error: A new session could not be created. (Original error: com.android.calculator2/com.xlythe.calculator.material.Calculator never started. Current: com.android.calculator2/.Calculator,) Difference ...

Exception occurs after application launch on real device or AVD using appium/selenium

import java.io.File; import java.net.MalformedURLException; import java.net.URL; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium....

Protractor and Appium always starting chrome

I am trying to run the Protractor tests using Appium on iOS Simulator / Genymotion Android Emulator. For this question, let's stick to the iOS, shall we? I've followed the steps on Protractor page ...

apk/ipa upload: Appium running on Mac and app on Windows

The Appium server is running on Mac and the application on Windows. A user is able to upload an ipa/apk file from the application. I would like to know if there is a way with Selenium to send an apk/...

How to Run Appium Server and Android Emulator in Parallel through Shell Script in Jenkins?

I want to start Appium server for automated testing in Jenkins and start Emulator through commandline. When I start Appium through Appium start script in shell command in jenkins build step, Appium ...

Setting a mock location on a real Android device with Appium

I am trying to set a mock location using Appium on a real device. This is what I currently have: Location loc = new Location(40.7142408,-73.7785652,29); driver.setLocation(loc); It doesn't seem to ...

getting null pointer exception when I run the code [duplicate]

My code gives a Null Pointer Exception. Here is the stack trace:- java.lang.NullPointerException at code.DataDrivenFramework.i_open_automationpractice_website(DataDrivenFramework.java:23) ...

How-to-unlock-phone-with-pattern-in-appium

so we are testing one application in which we need to change the pattern in between the flow to test the flow completely.I even tried this but it did not work: Integer x_topLeftCorner=257; ...

iOS - Why the Popup window is auto clicked without any code been written to click?

Popup imageScreen -When user taps on an element, a Popup window is seen. -This popup window has two buttons - OK and Cancel - Attached is the screen shot -The automation script always clicks on Ok ...

Java code to test current device is having an incoming call running on Appium server

I need to detect incoming call while running the test cases . I am using Appium ,Java.

Unable to perform any operation on real device using appium for native app automation

I am trying to use Appium for testing calculator app (Just for knowledge purpose). But I am not able to perform any operation. Below is the details: Real Mobile: Xiaomi Redmi Note 3 Android version: ...

Trying to accept location permission pop up with Appium/Android 7/Java

I am using Appium 1.6.3 and a Google Pixel with Android 7.1.1. I am trying to load the Waze app which is already installed on the phone and accept the initial location permission request. I have ...

While executing a java project jar from terminal getting the error

I am writing my java code in Android Studio for appium and was able to execute it from Android Studio successfully and I am converting the code to a jar. After converting to jar and i am trying to ...

Ionic 2 AWS Device Farm Appium Test NG

I have configured AWS Device Farm to run automated tests for my app. I successfully ran tests using the Built-in Explorer and Built-in Fuzz test types following this post. Now I would like to use ...

Appium: App Path only works with a direct link?

I'm using Laravel php and Appium. I want Appium to download the .apk/.ipa file from a certain route which returns the downloaded file. App path in Appium: localhost/downloadApp public function ...

Need RobotFramework Appium standalone jar with all dependencies

I am integrating RobotFramework with Appium using jython. I have installed Appium using command jython -m pip install robotframework-appiumLibrary This works fine, but i am looking for standalone ...

Design pattern for Value comparision in test framework

I am currently writing an Automation Framework for a Mobile app. In each screen of the app, there are numeric values which I have to keep track of. At the end of this flow I have to perform some ...

Nunit_Retry runs only ones on timeout failure

I'm using retry in order to run my tests multiple time when it fails. But, I have noticed that when there's an exception failure (Timeout when waiting for an elemnt e.g), then the test will run only ...

Unable to create new remote session. desired capabilities = Capabilities … required capabilities = Capabilities [{}]

I'm trying to run an Example of test scripts coded with java in Eclipse with Appium. I run Appium by npm (i'm using Appium 1.6.3, i'm not new to Appium i run it before on Mac and on windows without ...

Failed to start an Appium session

Below error occour while trying to run Appium server via Intellij IEDA: error: Failed to start an Appium session, err was: Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "C:\Android\sdk\...

Run automation Tests for android version 7.0 real device

I have a question that can we run automation tests for hybrid mobile application on a real device android version 7.0 using Appium version 1.5.3(Ara) or 1.4.16.1? what is the compatibility of android ...

Google Sign In Appium , get list of all account

com.google.android.gms:id/account_picker I have an google sign in button , which on click open picker to select account to sign into an app , . How we can get list of all account email address shown ...

How can I run two parallel Appium instances?

I am new to Appium. I have covered major functionalities like swipe, scroll, zoom and others. What is the procedure to run Appium in parallel for 2 real android devices simultaneously?

Appium Camera Functionality not working

I m checking the skype app functionality and trying to change the profile pic of it. I tried two queries. But android device is not capturing the image. I tried the two queries: driver.sendKeyEvent(...

Appium stops in between while running automation on android phone

i am running automation on android . appium version is 1.4 . It stops/ hangs in between and do not start untill one presses enter .

How To integrate appium with robot framework?

I want to automate an Android app through RobotFramework, can anyone help me integrate Appium within RobotFramework. Note I am using RobotFramework version3.0 in jython.

Appium Swipe( Pattern Functionality)

I want to make a 'Z'in password pattern format . I have used the below apporach.but its taking three strokes or we can say three swipes in order to make. But i want to swipe whole path in a single ...

How to access detached overlay view on android with Appium?

I have an android application which loads a WebView dynamically onto the screen as an overlay view (i.e. a web view that is detached from the Activity). I do it by using: myWebView.loadUrl("someUrl")...
Translating... 0%