Skip to main content

Python client for Appium 1.0

Project description

Appium Python Client

An extension library for adding Selenium 3.0 draft and Mobile JSON Wire Protocol Specification draft functionality to the Python language bindings, for use with the mobile testing framework Appium.

Getting the Appium Python client

There are two ways to install and use the Appium Python client.

  1. Install from PyPi, as ‘Appium-Python-Client’.

    pip install Appium-Python-Client
  2. Install source from PyPi, as ‘Appium-Python-Client’. Download and unarchive Appium-Python-Client-0.2.tar.gz, then run

    python setup.py install
  3. Install from GitHub.

    git clone git@github.com:appium/python-client.git
    cd python-client
    python setup.py install

Usage

The Appium Python Client is fully compliant with the Selenium 3.0 specification draft, with some helpers to make mobile testing in Python easier. The majority of the usage remains as it has been for Selenium 2 (WebDriver), and as the official Selenium Python bindings begins to implement the new specification that implementation will be used underneath, so test code can be written that is utilizable with both bindings.

To use the new functionality now, and to use the superset of functions, instead of including the Selenium webdriver module in your test code, use that from Appium instead.

from appium import webdriver

From there much of your test code will work with no change.

As a base for the following code examples, the following sets up the UnitTest environment:

# Android environment
import unittest
from appium import webdriver

desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '4.2'
desired_caps['deviceName'] = 'Android Emulator'
desired_caps['app'] = PATH('../../../apps/selendroid-test-app.apk')

self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
# iOS environment
import unittest
from appium import webdriver

desired_caps = {}
desired_caps['app'] = PATH('../../apps/UICatalog.app.zip')

self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)

For the added functionality, over Selenium WD, see the Appium Python Client GitHub

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Appium-Python-Client-0.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distributions

Appium_Python_Client-0.2-py2.7.egg (30.6 kB view details)

Uploaded Egg

Appium-Python-Client-0.2.macosx-10.9-intel.exe (78.6 kB view details)

Uploaded Source

File details

Details for the file Appium-Python-Client-0.2.tar.gz.

File metadata

File hashes

Hashes for Appium-Python-Client-0.2.tar.gz
Algorithm Hash digest
SHA256 309f3f237daa56ff6035110056a1aa4afba879a2e55867833a229cca9093e9bd
MD5 01fcef2d124e2d63ab9d00eb8a8d275f
BLAKE2b-256 2fe417016c65a043a52fdbaf9dcbae0c938ecd3b3c0f155381cac39bce2a6694

See more details on using hashes here.

File details

Details for the file Appium_Python_Client-0.2-py2.7.egg.

File metadata

File hashes

Hashes for Appium_Python_Client-0.2-py2.7.egg
Algorithm Hash digest
SHA256 bd0524449764b30a7229ff0b7f9927487f99cf0d38c71446dea74dfde1288b60
MD5 7eac0b06645f0bca20866de8ff8b270b
BLAKE2b-256 1e52019d3a6ae65fd1f53044f8c2db0439a46f57720e0e0971d11a57dd6500c4

See more details on using hashes here.

File details

Details for the file Appium-Python-Client-0.2.macosx-10.9-intel.exe.

File metadata

File hashes

Hashes for Appium-Python-Client-0.2.macosx-10.9-intel.exe
Algorithm Hash digest
SHA256 2ab1323cbbac1cac31cdb490c037f348535fd281fc63ed676c828aa38c4df695
MD5 998f9916281e6ce47f21a832b525479c
BLAKE2b-256 b5e6c3f9a78576170318957915751a1b35dcaa5822019eff3c8cd1d9dc317b2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page