Newest appium Questions

Q&A for professional and enthusiast programmers

HOW to inspect MacOS native application

How to inspect MacOS native application? Appium? Xcode? I have tried Appium, but looks like it works for IOS app only? For example, I want to locate the URL box in Safari. So that I can get the url ...

IOS Webkit Debug proxy issue - Unable to bind device

I am trying to start ios webkit debug proxy by passing the udid and the port number. Command: ios_webkit_debug_proxy -c 4ea8dd11e8c4fbc1a2deadbeefa0fd3bbbb268c7:27753 -d. Facing issue while binding ...

Is it possible to invoke the main method of a test class through pytest?

I have a test class test_enrollment.py that defines a set of tests, and has a main method which uses a generator to generate a new custom test class. In a simpler form, it looks like: import json ...

Not getting appium/android supportive methods for driver

I am not able to use methods like isLocked(),closeApp(),isinstall() I am not getting these options for ctrl + space after 'driver.' Am I missing some library? Please let me if more info required ...

Does Appium support automation of Android 7 Multi window

I'm using Appium for Android test automation. I'm wondering whether Appium supports automating 2 Apps running on multi window on Android 7 simultaneously. I couldn't find any discussion or ...

There is no click event when doing automation test with Xiaomi

//WebElement el = driver.findElement(By.xpath(".//*[@text='Add Contact']")); //el.click(); List<AndroidElement> addContacts = driver.findElementsById("com.example.android.contactmanager:id/...

Not able to do swipe operation in appium. Method is getting deprecated

I am trying to do swipe operation using swipe(direction, duration) method in appium. But swipe method is getting deprecated.And getting exception on console FAILED: test org.openqa.selenium....

Not able to use appium specific method

I am not able to use any appium specific methods.so I stuck badly.I am not able to perform operation using 1)TouchAction class so not able to perform following operaion i)tap ii)longpress iii)zoom ...

Do Appium Python tests in AWS Device Farm have to run through pytest?

I've written some tests that have this structure: ├── __init__.py ├── __pycache__ ├── config │   ├── __init__.py │   ├── android_chrome.py │   ├── android_native.py │   ├── base_config.py │   ├── ...

How to run two adb shell commands via Python, but store output of only one?

I am [new to] using Python 2.7 on Windows 7 and I am trying to incorporate adb shell commands to access/change the directories on my Android device. What I need to do is get the size of a directory in ...

selectorExecute function - webdriverio appium - android device

Please consider this My webdriverio selector in a js file: this.TopViewGroupChilds='new UiSelector().childSelector(new UiSelector().className("android.view.ViewGroup"))'; I am referencing this in ...

iOS AccessibilityIdentifer is set but not working

I have the following sample code which I'm testing for Accessibility Id to be used for XCUITest / Appium automation. Been breaking my head to make it work. Currently, this piece of code is not showing ...

How do swipe or scrollIntoView with collapsing toolbar?

I am implementing my automated testing for Android and when I try to use the method swipe() or scrollIntoView(), these methods don't work when the collapsing toolbar from the screen is collapse (see ...

java.lang.NullPointerException when running a test case using selenium appium [duplicate]

I am facing this issue while i am trying to make use of abstraction concepts for my tests. My SignIn page class: public class SigninPage { protected AndroidDriver driver; String app_package_name = ...

I trying to launch Chrome browser in android mobile using appium getting error, please suggest me to fix this

info: --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"chrome","platformName":"Android","deviceName":"BH90AD1C0G","platformVersion":"5.1.1"}} info: Client User-Agent string: Apache-...

Appium Python: Is it possible to bundle pytest tests by fixture parameter?

I'm trying to use pytest to run my test suite under a collection of various platform configurations. I would like all the tests to run under one configuration before moving on to the next ...

Can i get Xpath from UIAutomator Viewer in Appium?

How can i get Xpath or css path from UIAutomator Viewer, am testing android app in my case there is no id,name. It's showing only the index and classname.

How to inspect an iOS app with appium on a Windows machine

I need to inspect an IPA with Appium Inspector. Is there a way to do this on a Windows machine? I'm looking for free and easy. The only option i've found is putting OSX into VMWare on Windows which ...

“Wait Until Page Contains” keyword doesn't work on RobotFramework-appium

I'm using appium (1.6.3) library of RobotFramework 3.0 on Mac desktop (Sierra, 10.12.3) to automate real iOS device (platform version 10.2.1). I'm using Xcode version 8.2.1 and XCUI Test Driver ...

Click on elements using Bounds in UIAutomator?

I am using appium_lib gem to automate my android tests. I have an element, which doesn't have a text , content-desc , resource-id to identify. I have tried several methods to have it identified like ...

Getting null pointer exception in appium [closed]

I am getting null pointer exception in android automation, when importing my project (zip file) in other machine in eclipse

Open browser and perform some actions in between the test execution of native app in android using appium java

I am automating Mobile Native Application using appium (*Java, Android). To continue with my test case i need to input an authentication code which can be obtained from a URL. I need to open browser ...

Click on Download button from Chrome browser Robot framework

I am using Robot framework. Basically I am opening a URL on the Android's Chrome browser. When I hit that URL it downloads a .apk file. But there is a Chrome pop up asking for my conformation. So how ...

Swiping in Android Device changes the list of web-elements saved before swiping

I'm trying to swipe the screen till the last element, to know I've reached the end of the page,I check the list before scrolling and after scrolling is same or not. The below function runs till the ...

How to produce APK IPA code from React Native where app elements have their ID property set

I'm new to React Native so please excuse me if this is obvious. I couldn't find any answers searching. What is the process to ensure the app elements for an IPA or APK have values set for their ID ...

How to configure Jenkins to run Android integration tests written to currently run using appium server after launching from Intellij

I am trying to transition my perfectly written java tests from a manual in Intellij process to an automatic process of multiple or a single Jenkins job(s). I inherited a very robust suite of ...

Real iOS device using Appium and the XCUITEST driver . Cannot find dropdown webelement or sendkeys using XCUITEST driver

I have xcuitest driver and appium working together to launch safari and navigate to the AUT. It is using the code for my android tests and for the most part is working. Although I am having issues ...

Cannot Dismiss Native iOS Alerts with WebDriverJS

This one has got me stumped, and I have googled around like crazy with no results... I am trying to use WebDriverJS with Node, against an iOS simulator and Appium 1.6.x. but the site I am testing ...

SessionNotCreatedException error coming in Selenium code

package day1; import java.net.MalformedURLException; import java.net.URL; import io.appium.java_client.android.AndroidDriver; import org.openqa.selenium.remote.DesiredCapabilities; public class ...

Use mocha programmatically via rest

currently I try to figure out, how I can run mocha tests on a GET request of localhost:3000/run/tests resource. Most things seems to work fine, but mocha .on('end') is probably not fired correctly so ...

Not able to use UISelector class methods

I am not able to use UISelector class methods.for eg I am not getting option for findElementsByAndroidUIautomor afetr "driver." Do I need to add some libraries This my driver setup function ...

driver.launch resets the App in Appium

I have BDD framework and i want to install the build only once for a suite so i have return the below script on driverSetUp if (fullReset) { capabilities.setCapability("fullReset", "true")...

Not able to pass URL for webapp testing in appium

I am trying to do webapp testing using appium.I am able to launch chrome browser but it showing "data;" instead of passing url (http://google.com) and chrome is getting close it happens twice/thrice ...

How to clear pre-filled text box value using java in appium?

I have already tried multiple codes(using java) to clear password field of my android application such as, driver.findElement(By.id("..")).clear(); driver.findElement(By.id("..")).sendKeys(" "); ...

Open Chrome browser using Selenium2Library on Android device (Robot framework)

How do I open chrome browser on Android device? I used this reference : Open chrome browser in android, using robotframework Opening Chrome browser in Android device using Robot Framework script and ...

INSTALL_FAILED_UPDATE_INCOMPATIBLE- Appium Eclipse Error

I am trying to launch amazon.apk fron Appium(Eclispe Java/Selenium/Appium Project). Getting Below Error message org.openqa.selenium.SessionNotCreatedException: A new session could not be created. ...

Appium driver loses focus on the app after sending push notification on Android 7

The problem Unable to find the elements on the app using driver.findElement(xpath) after sending/receiving push notification on Android 7 platform. Environment Language used for writing automation ...

open SMS\MMS conversation list

I'm trying to open the SMS\MMS conversation list in my android by using appium. I have Galaxy Note 5 and Galaxy S5 , with android version 6.0.1, so both have the same behavior. In order to retrieve ...

Scrolling in Appium

I am automating a Tablet application using Appium + Java. In a screen, I have 100+ fields (Textbox + Dropdown) to automate which has scroll view. To automate those 100+ fields, I have listed down all ...

while sending the data to text field using appium its working as longpress

driver1.findElements(By.xpath("//android.widget.EditText")).get(1).sendKeys("santhosh"); driver1.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);

How do I dismiss a modal view controller when testing my iOS app with appium

Hi I am building automated tests for my iOS apps using Intellij / Appium. In my Xcode iOS app I present an alert to the user as follows: [vc presentViewController:alertController animated:YES ...

NoSuchElementException : Couldn't locate an element by these strategies: Locator map

I'm trying to get the Appium .NET driver set-up with Saucelabs using the Page Object pattern. I've got everything setup, however I'm having issues trying to find elements on the page, as ...

Appium forces JavaScript heap out of memory

Running autotests by pagefactory + testng + maven 1) start selenium grid: java -jar \selenium-server-standalone-2.53.0.jar -role hub 2) start appium servers: appium -a 127.0.0.1 -p 4723 --bootstrap-...

A new session could not be created

Actually, I got this Error When Invoking Android app into the real device. I know and well search about this type of issues but didn't get a solution. I request you please help me out with this ...

No Profile for WebDriverAgentRunner is seen on java scripts , but works fine when AgentRunner is build from xcode

I did setup my machine for Appium 1.6.3 to work on Mac -iOS. Did follow the steps mentioned in the Github appium When i run WebDriverAgentRunner from xcode it builds and succeeds without any error. ...

Test Cases not failing even if it has actually failed using Selenium TestNG

I am using selenium appium for testing mobile application. One of my tests is register user which has actually failed, but it shows as passed in my eclipse console. @Test public void ...

How do I find the xpath for a Floating Action Button in Android?

So I am writing automation with appium and so far I've been using the appium inspector to gather my xpath data. I'm referencing everything via xpath due to my app not having unique identifiers on all ...

Appium (Java) - How to close app from background and open again without logging user out?

Test case - User open's the app & logs-in, now the user want to close the app from the background and open again (without being logged out). Condition: Closing the app from the background and ...

Appium : to find unique elements using UIAutomator?

In UIAutomator, 1) How can I be sure that, the Xpath I have written inspects that particular element only? So basically when we use firebug and firepath in selenium, it says "1 matching node" or "2 ...

Not able to do tap event.Getting classcastexception

I am using boomyshow app to do tap event.I am using TouchAction class to do so.This is my code for taap event TouchAction t =new TouchAction(driver); WebElement el = driver.findElementById("com.bt....
Translating... 0%