22
33_ Author: Sean Wang xiao.wang@symbio.com _
44
5- AndroidWebDriver4Python is an add-on to [ Selenium Python Client Driver] ( http://pypi.python.org/pypi/selenium )
5+ AndroidWebDriver4Python is an addon to [ Selenium Python Client Driver] ( http://pypi.python.org/pypi/selenium )
6+
7+ This addon supports multiple real devices simultaneously from release 1.1, but not supports emulators. I have not figured out yet.
8+
69
710As I could not find Android WebDriver implementation in it,and I really like Python as opposed to Java. So I want to implement one.
811I know that I am a newbie, I do not expect to commit in the Selenium project.
912
13+
1014More infomation about * Selenium* , plz check http://code.google.com/p/selenium/
1115
1216# Installing
@@ -20,7 +24,7 @@ $ git clone git://github.com/truebit/AndroidWebDriver4Python.git
2024```
2125
22262 . download and extract [ Selenium Python client] ( http://pypi.python.org/pypi/selenium#downloads )
23- 3 . copy the entire 'py' folder under AndroidWebDriver4Python to merge the
27+ 3 . copy the entire ` py ` folder under AndroidWebDriver4Python to merge the
2428same one in root directory of AndroidDriver for Python
25294 . back to the root directory of Selenium Python Client, to install this modified version using command:
2630
@@ -42,11 +46,12 @@ There are some prerequisites to use AndroidWebDriver4Python.
4246``` python
4347from selenium import webdriver
4448
45- driver= webdriver.Android()
46- # another way is to explicitly specify the serial id of the device
47- # driver=webdriver.Android('emulator-5554')
48- driver.get(" http://www.symbio.com" )
49- driver.quit()
49+ driver1= webdriver.Android(' HT1234567' )
50+ driver2= webdriver.Android(' 091012345601E00D' )
51+ driver1.get(" http://www.symbio.com" )
52+ driver2.get(" http://www.google.com.hk" )
53+ driver1.quit()
54+ driver2.quit()
5055```
5156
5257If you want more detailed example, plz check [ example.py] ( AndroidWebDriver4Python/blob/master/example/example.py )
0 commit comments