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.
Install from PyPi, as ‘Appium-Python-Client’.
pip install Appium-Python-Client
Install source from PyPi, as ‘Appium-Python-Client’. Download and unarchive Appium-Python-Client-0.2.tar.gz, then run
python setup.py install
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for Appium_Python_Client-0.2-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd0524449764b30a7229ff0b7f9927487f99cf0d38c71446dea74dfde1288b60 |
|
MD5 | 7eac0b06645f0bca20866de8ff8b270b |
|
BLAKE2b-256 | 1e52019d3a6ae65fd1f53044f8c2db0439a46f57720e0e0971d11a57dd6500c4 |
Hashes for Appium-Python-Client-0.2.macosx-10.9-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ab1323cbbac1cac31cdb490c037f348535fd281fc63ed676c828aa38c4df695 |
|
MD5 | 998f9916281e6ce47f21a832b525479c |
|
BLAKE2b-256 | b5e6c3f9a78576170318957915751a1b35dcaa5822019eff3c8cd1d9dc317b2e |