Questions tagged [appium]

Appium is an open source test automation framework for use with native, hybrid and mobile web apps. It drives iOS and Android apps using the WebDriver protocol.

Filter by
Sorted by
Tagged with
-1
votes
0answers
13 views

Not able to create First appium Test Script to Launch App on Real Device [on hold]

Eclips error: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An ...
0
votes
1answer
25 views

Is there any way to get around the multi factor auth in mobile test automation?

I have an app that would ask me to enter a verification code from a received SMS. How do we get around that or if there is any mechanism to enter the code at all? This is an automated UI test using ...
0
votes
1answer
35 views

With appium which language will be compatible when application is built on dot net?

My application is built on dot net and I want to automate the application using Appium tool. I am not able to decide which language should I use with Appium to automate this app. Considering this is a ...
0
votes
1answer
585 views

Error showing “Include a platformName” capability

I recently started to learn Appium with Javascript. When executing my script, I am getting an error stating "Include a platformName". I don't understand why, even though I have included it (...
0
votes
0answers
17 views

How to resolve inconsistent Appium Desktop versions and update messages?

If I go to appium.io I find a download link at github.com/appium/appium-desktop for stable 1.13.0 at https://github.com/appium/appium-desktop/releases/ There also exists a github.com/appium/appium ...
0
votes
1answer
594 views

Appium + Java + Android + iOS : java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V

Question: How to fix : java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)Vmethods. More info: I observed this error for android as well as iOS ...
0
votes
1answer
63 views

Getting this error when i run my java appium script

When I save and run the code the compiler is showing error with respect to DesiredCapabilities I thought I might have made an error while importing the jar so I uninstalled everything and installed it ...
2
votes
1answer
339 views

Appium Desktop won't open for Ionic App

I am currently trying to automate an ionic app using Appium and Python. I have the Appium Desktop version 1.7.2 installed. However, if I try opening any ionic app using Appium Desktop, it hangs at ...
2
votes
2answers
325 views

Close a one windowHandler at the Webview

I am writing scripts to automate a hybrid application. On my app I have two windowHandles. For example, after performing some actions when I execute below code I get "2" windows as the windowHandles ...
0
votes
1answer
1k views

Maven TestNG multiple suites in different folders

I'm working on a mobile automation task where I need to run test suites in parallel for 3 different iOS apps. Each test suite has its own testng.xml with a section configured to run on a device. I ...
0
votes
2answers
175 views

How to click on an iOS MobileElement (button) which is dynamically changing using XPath

Below is the XPath- //XCUIElementTypeButton[@name="8/13"] The numeric value in the above XPath changes and is not static. There are more then 10 buttons on the screen, I want to click on the first ...
0
votes
1answer
52 views

Appium: How to resolve Class cast exception for iOS driver? “java.lang.ClassCastException”

I referred to one of the answers posted in this forum and when I attempted to run following code NetworkConnection mobileDriver = (NetworkConnection) appiumDriver; if (mobileDriver....
2
votes
3answers
537 views

Android application not launching with Appium

I have downloaded the latest Appium Desktop to inspect the different elements for automating an app. I was able to launch the calculator app on my Android phone but was unable to launch an app that I ...
1
vote
0answers
224 views

Appium inspector crashes and won't load a certain page but can load other pages

I'm trying to get the elements of a certain page and Appium inspector takes a long time to capture the picture, but then the elements page source will show up with only 1 element tag and rest of the ...
2
votes
1answer
1k views

Appium stuck after context change from native to webview

I am testing a Hybrid Android app - Tubemate in Appium. I'm using the following configuration: selenium-java = version 3.0.1 appium java-client = version 4.1.2 chromedriver = version 2.19 Android = ...
3
votes
1answer
501 views

Unable to launch Safari on iOS using Appium

I am automating some tests a real device (iOS) using Appium and Cucumber. My idea it to do the following steps: Open the app Do some tasks Launch Safari Navigate to a website, lets say google.com ...
0
votes
1answer
270 views

Appium 1.4.13 How to resolve error: Could not detect Mac OS X Version from sw_vers output: '10.12 ']?

Environment : macOS Sierra, Appium version 1.4.13 (Draco) I am not able run appium. Please help, How to fixed this issue? appium doctor has not worked. Error : info AppiumDoctor ### Diagnostic ...
1
vote
1answer
209 views

Appium | Getting error when using .click or sendkeys

I'm looking to start automation of a mobile application. I went through Appium related articles and most of them suggest to use Appium with Javascript. I explored online and setup appium and my code ...
3
votes
2answers
174 views

Verify if selenium tests are running on real devices or emulators

If I use any cloud provider (eg SauceLabs, AWS Device Farm etc) for testing my native android and iOS apps, is there a way to determine if the test was being run on a real device or an emulator. I ...
3
votes
1answer
854 views

Unable to run Appium Version 1.3.6-(Ophiuchus) on Yosemite for Testing Android App on real device

These are my settings: My SDK path: -/usr/local/adt-bundle-mac-x86_64-20140702/sdk My APK path -/usr/local/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/Setmore.apk Given Package name, Launch ...
1
vote
1answer
631 views

Appium TestNG error : Attempting bi-dialect session, assuming Postel's Law holds true on the remote end

I'm trying to launch a simple web application test using Appium, using AVD. I'm using eclipse, and the android studio emulator. I included all the packages. I would like to make sure about the ...
5
votes
2answers
521 views

Performance for WebDriver vs AndroidDriver vs iOSDriver

I initially wrote a few selenium scripts to test my web application. The scripts use RemoteWebDriver call for initialising web driver. I now wanted to run the same scripts to test the web application ...
0
votes
1answer
233 views

Executing appium test on kobiton device

I'm running some of my Appium test cases which are written in c# under .net platform on a real time device which is attached to my workstation. Below is my code and it works fine. public void ...
0
votes
0answers
25 views

Injecting test data into testcases from async functions through NUnit TestCaseSource attribute

I am creating a test automation framework in C# with NUnit, and I want all my testcases to run with a clean user. Fortunately, developers have already implemented a REST API which accepts POST ...
0
votes
0answers
19 views

Getting Appium integrated with BrowserStack behind a proxy

I'm trying to get Appium WebDriver integrated with BrowserStack, using C# behind a corporate proxy server and am having trouble. I'm using CNTLM due to the proxy server, so am trying to point Appium ...
0
votes
1answer
478 views

Different context name for webview in Hybrid Android App test through Appium

While testing Hybrid android app in Appium, a change of context from NATIVE to WEBVIEW is expected. But, the name of the WEBVIEW context does not remain same at all instance of testing. However, it is ...
3
votes
5answers
5k views

Which language to choose for Appium - Python or Java?

We have an iOS application (written with Obj-C and now starting to incorporate Swift) that we want to write tests for using Appium. Our test team comprises of people who have little programming ...
0
votes
1answer
27 views

How can my mac be setup to run both appium/selenium with java and python without conflict?

How can my mac be setup to run both Appium/Selenium with java and python without conflict? Are there steps I should take and things I should avoid? What things should I look out for? My mac is setup ...
0
votes
1answer
317 views

Switching to webview fail in Android on Mac OS

I have a problem while switching from native view to webview in Android while testing on MAC OS. But the same scripts works fine in windows. In Mac it gives chrome not reachable as a webdriver ...
0
votes
1answer
277 views

How to auto scroll Appium Server Console log at bottom

Problem : I used to view/analyze Appium server Console logs during any test cases execution. But the problem is Appium server console always Auto scroll to top which result hiding latest logs. I have ...
1
vote
1answer
678 views

Switching to Webview context fails

I was trying to automate tests for a hybrid app, while switching, it only shows name native context. WebView Context is shown as webview_undefined. Set<String> contextNames = driver....
3
votes
2answers
588 views

Can Appium automate the In App Purchase flow on iOS?

Making an In App Purchase (IAP) on iOS brings an Apple alert and puts the application into the background. If I use the Appium framework for automation, will I be able to interact with these prompts? ...
0
votes
2answers
99 views

Not able to enter case-sensitive credential in android app

I am writing a test case for an android app where the app requires case-sensitive credentials. I writing test cases using appium and TestNG. Steps I am following are - Launching app Entering ...
0
votes
2answers
375 views

Device emulator-5554 is not online - while executing my appium code on android emulator

[Error: An unknown server-side error occurred while processing the command. (Original error: unknown error: Device emulator-5554 is not online Im getting above error when at the middle of the test ...
3
votes
1answer
174 views

Page Object Model: need help with tests that uses more than 1 page object - Appium-Java-TestNG

I have a framework based on POM model. I am able to write test that only uses elements from 1 page but when I need to access elements from another page tests fail because I think it uses the wrong ...
0
votes
1answer
1k views

Unable to press and move slider to desired position in a React Native android app using appium

I am using TouchActions class in Appium to press and move the slider to a specified position.The problem that I am facing is that on some pages the slider works fine and I'm able to initiate touch ...
1
vote
1answer
1k views

How to open messaging app during one android app test case is running to fetch otp

How do I open messaging app when test case is running for any other app. Need to fetch OTP from messaging app during a test case is running for my android app. I have tried to create new instance ...
0
votes
1answer
410 views

Unable to tap on Search on android keyboard using pressKeyCode(int) method

I am a beginner in Appium automation. The application I am testing, have this scenario where I need to tap on Search button from the native keyboard. I have tried with pressKeyCode method but getting ...
6
votes
1answer
786 views

Getting web driver exception message while tapping list elements using appium

I am using appium 1.4.8 on mac and I'm automating native app using selenium. I am stuck at a situation where I need to tap each element in a list. I wrote below code: List allKeywords=driver....
0
votes
1answer
2k views

How to open the app using appium?

I am new to appium, i configured appium with selenium it is working fine I am able to open the browser in my device and able to edit and do all the commands. But unable to open specified app, i gave ...
3
votes
1answer
438 views

Setting appium to run test on iOS device

Please help me for my setting in appium, I cant launch and display appium inspector on ios, but my setting for android already working and fine use macOS- Sierra appium 1.5.3 iphone iOS 10.2 ...
0
votes
1answer
156 views

When i run my appium code during run time i am getting this error “Exception in thread ”main“ java.lang.NoClassDefFoundError”?

I have written a code to launch my app and click on the element, the app is launching but after launching when it is trying to click, I am getting an error which I am not able to understand why. ...
3
votes
1answer
2k views

how to find element by xpath for android appium

Since these nodes don't have ids and text, I have used xpath to find the element but find element fails I have tried different xpaths as below but none work. xpath=//android.view.View[10] xpath=//...
1
vote
1answer
309 views

How to fix DesiredCapabilities error in java appium?

I am getting this error "The type org.openqa.selenium.remote.DesiredCapabilities cannot be resolved. It is indirectly referenced from required .class files" when I compile and run the program. when ...
0
votes
0answers
63 views

Cannot instantiate class tests.LoginPageTest

package tests; import java.net.MalformedURLException; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.testng.annotations.AfterTest; import org.testng....
0
votes
1answer
854 views

App is launched but not able to perform further actions (App automation using appium)

I am new in mobile app automation I have successfully launched Google Playstore application in my android device. but,i can not click on next tab "GAMES". My Code package com.automate.app.screens; ...
0
votes
0answers
17 views

WPF / Winappdriver

My task is to automate a WPF app using appium and Winappdriver. Inspect finds the various elements but Winappdriver doesn't. It turns out that someone in another team got a similar task and had no ...
1
vote
2answers
36 views

Can not choose button with the same name (Windows)

The problem I have two buttons with the same name in Windows program. So I do: "self.driver.find_element_by_name("button name").click()" - it selects the first one, but I need the second one. I ...
0
votes
2answers
117 views

How to automate when you do not get any id or xpath

I have a scenario where I need to sign in using Facebook, so when I used UiAutomator viewer to inspect I am not able to find any element. So how to perform automation in such cases.
0
votes
0answers
25 views

Unable to install apk & launch the application in Appium

Appium Server Log: [ADB] Getting package info for 'io.appium.unlock' [ADB] Running 'C:\Users\ab.chauhan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 93e6ecca0903 shell dumpsys ...