Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

3
votes
2answers
163 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 ...
2
votes
2answers
3k views

How to login with http proxy using selenium

I'm using Selenium and Appium to run my java project in Android mobile. I'm trying to execute on Chrome browser and everytime it runs, it asks for proxy credentials (username and password), this is ...
2
votes
2answers
298 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 ...
2
votes
2answers
561 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
49 views

How to scroll horizontally knowing that the required tab has no unique ID (Appium using Java)

What I want to do is scrolling horizontally in a tab that doesn't have a unique ID. I have code how to scroll using id and textmatches like this example: driver.findElement (MobileBy....
0
votes
2answers
92 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
2answers
145 views

Getting error when i run my test using mocha

I have written a code where it will launch the app,click on the login button ,enter username and password and click on sign in . when i run this using "node 'filename'" it is running fine with no ...
0
votes
2answers
86 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
2k views

Appium automate a select an item from list

I am working in appium and My app is a hybrid app it is coded with angular js. I have scenario to automate. A page opens liks select date -> today, tomorrow and pick a date <div class="item item-...
0
votes
2answers
337 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 ...
1
vote
1answer
621 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....
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
37 views

Handling the case when users get different main pages based on usertype after login

It's more like a theoretical question and I am seeking the best practice here. Given an application where you have different user types, newly registered users get a new UI while old users are ...
0
votes
1answer
43 views

Using a small number of available user properties across a large number of threads

I'm currently building a testing framework for functional tests. I can run them in parallel using Cucumber but I have run into a problem in creating users for each thread (each test requires a brand ...
0
votes
1answer
21 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
370 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
1answer
53 views

Is there any alternative for AppCenter for mobile testing in Azure DevOps?

I am new to mobile testing, and using Appium for my tests. We are using Azure Devops. Since our team is relatively small and there's no really budget for QA, I am looking to see if there's any way I ...
0
votes
1answer
328 views

When I run my appium script I am getting error “TypeError [ERR_INVALID_ARG_TYPE]”which I am not able to understand

I wrote a script to automate my app using appium with java-script(nodejs), but when I run it I am getting error. This is the code which I have written. var webdriverio = require('webdriverio'); var ...
0
votes
1answer
391 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
1answer
98 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
1k 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 ...
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
1answer
266 views

Sometimes Appium clicks on some buttons with a very long delay (on some views)

While testing by appium (using python), it clicks on some buttons with a very long delay on some views in my android app. Method, which I am using: def click_element(self, element, time=wait_time): ...
0
votes
1answer
200 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
1answer
373 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 ...
0
votes
1answer
238 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 ...
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 ...
0
votes
1answer
261 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 ...
0
votes
1answer
459 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 ...
0
votes
1answer
307 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 ...