How to automate any desktop application using Selenium WebDriver + AppiumForMac

Raju Ayyampillai
1 min readMay 15, 2017

--

Here i will go with Mac OS

We can achieve this by using AppiumForMac

Requirements

Mac OS X does not allow an application to use the Accessibility API without permission, so you have to enable it manually.

10.9, 10.10, 10.11, 10.12

  1. Open System Preferences > Security & Privacy.
  2. Click the Privacy tab.
  3. Click Accessibility in the left hand table.
  4. If needed, click the lock to make changes.
  5. If you do not see AppiumForMac.app in the list of apps, then drag it to the list from Finder.
  6. Check the checkmark next to AppiumForMac.app.

Setup

We are done with the requirements now lets start the setup.

Add appium java-client and Selenium stand alone server jars to your java project. and start AppiumForMac.app.

How to get AXPath

Now its easy to get AXPath, While AppiumForMac is running, just use the mouse to point to an element, then press the fn (function) key. AppiumForMac will build the AXPath of the element on screen, and copy it to the clipboard. You can then paste it into your script

Simple calculator app automation

TextEdit app automation

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (8)

Write a response