Appium 1.0 [Orion]
Appium team has just released new version of the Appium.[1.0] a.k.a Orion, which has fixed some bugs as well as added new amazing features. Appium[@AppiumDevs] team launched new appium verion at Saucelabs [@saucelabs]
The list of the new appium features are posted on the Saucelabs official blog ‘Oh, Appy Day! Appium 1.0 is Here‘. All the other features are also on the release notes. In a nutshell, they are as follows
- New Client libraries for all the supported languages e.g Java, Python, Ruby etc
- New Desired capabilities API for the Selenium WebDriver
- Full XML and XPath Support on top of JSON
- New element locator strategy and support for more platforms
- Brand New Appium App for the OSX
Appium OSX App
Appium has also released brand new OSX App which looks awesome. Now, let’s see how to use Appium OSX App on the mavericks
Once you updated to latest version, you will see nice looking user interface of the appium app. Appium app has five main Settings
- Android Settings – To Setup your Android App
- iOS Settings – To Setup iOS App
- General Settings – To Setup Server and port.
- Developer Settings – To setup Appium package path, Node Module patha
- Robot Settings – To Setup Robot port and server.
Once, You got Appium, next thing you need to authorize iOS for the Appium. You will get a pop up to to authorize an ios.
Setting iOS APP
We can setup our iOS App for an Appium by selecting ‘Apple’ icon [iOS Settings] from the menu. We have to locate the PATH of our APP in the ‘App Path’. We can also tweak device settings, we can change the device e.g iPhone, iPad as well as iOS versions. The Settings looks like these
Setting Appium PATH [NodeJS]
There are Developer settings where we need to tell an app that where is our Appium Package PATH is located. In this case, I have installed Appium using nodeJS in the project directory
$ npm install appium
This will create ‘node_modules’ directory and Appium package is inside the directory. We cal also specify an external path. The server and port for the Appium can be setup from the ‘General Settings’
Once you have setup and iOS APP and Appium Package. You are ready to launch and Appium Server on the server and port you have specified. You can launch Appium by clicking on “Launch” button on the top right corner. Once you start Appium server it should listen to commands
Using Appium Inspector
Appium Inspector is the cool way to inspect and record the action on our Mobile App. Appium You can launch Appium Inspector by clicking on the ‘i’ icon on the top right hand corner. Using an Appium Inspector, we can record and playback script with your favourite programming language.
Here is an Video Demo of the how to use Appium App on OSX. This also shows how to use an Appium Inspector to record scripts.
Happy Mobile Automation !!