Troubleshooting Zoom out issue in Appium

Qxf2 has steadily been improving the mobile automation capabilities of our Test automation framework that wraps around Appium. We wanted to add support for the traditional pinch-to-zoom method in our framework. To achieve this, we used the SwagLabs as the application under test and developed this feature. In this post, we’ll discuss a particular challenge we faced with the zoom […]

Weather Shopper: Practical way to learn Appium and Programming Language

This post is for testers who are new to programming and looking to learn mobile test automation. Qxf2 Services has developed an Android application – Weather Shopper, to help testers practice Android app automation using Appium and learn programming languages simultaneously. You can get the application from Google Play Store here. Weather Shopper application offers a rich set of mobile […]

Android and Appium: Press Enter on the soft keyboard

Problem: Use Appium and press ‘Enter’ on the soft keyboard. This post continues our series on intermediate level problems when automating mobile application tests using Appium. We thought of sending a KeyEvent to an input (textbox) element using Appium. Superficially this appears to be trivial, but while writing the script, figured out otherwise. To our surprise, it failed. And there […]

Python Appium tests on different Android versions

Problem: UI element identifiers are not consistent across mobile platforms. Mobile is eating the world. However mobile operating systems are not yet fully mature. For example, UI element identifiers change between versions of the same OS. They also look different across Android and iOS. This causes automation scripts to be brittle. We hit this problem recently. We were writing automation […]

Android unit testing: Android testing framework and Robolectric

Problem: There are not many good tutorials on Android unit testing Android applications are written in Java. So you probably think if you know JUnit, you can unit test Android applications. Surprise! JUnit is not sufficient for unit testing Android applications. Junit works when the code runs within a JVM. Android applications interact with the Android OS. So you need […]

appWaitActivity: A new session could not be created

While exploring Appium with mobile devices I hit the following error WebDriverException: Message: u’A new session could not be created. (Original error: atpwta.live/.activity.Main never started. Current: atpwta.live/.activity.root.TournamentList)’ Initially, I had set desired capabilities to: desired_caps[’platformName’] = ‘Android’ desired_caps[’platformVersion’] = ‘4.4’ desired_caps[’deviceName’] = ‘Moto E’ desired_caps[’appPackage’] = ‘atpwta.live’ desired_caps[’appActivity’] = ‘.activity.Main’desired_caps[‘platformName’] = ‘Android’ desired_caps[‘platformVersion’] = ‘4.4’ desired_caps[‘deviceName’] = ‘Moto E’ desired_caps[‘appPackage’] […]

Ways to identify UI elements in mobile apps

Problem: Many testers do not know how to identify UI elements in mobile apps. In this post, I explain about different ways to find UI elements in Android’s calculator app. I also show you examples of using Appium’s API with the different locator strategies. Why this post? Identifying UI elements is a key component of writing UI automation. Most testers […]