Skip to content

Commit 6b0cdf2

Browse files
committed
rewrote the example for multiple devices
1 parent c514856 commit 6b0cdf2

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
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

710
As I could not find Android WebDriver implementation in it,and I really like Python as opposed to Java. So I want to implement one.
811
I know that I am a newbie, I do not expect to commit in the Selenium project.
912

13+
1014
More 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

2226
2. 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
2428
same one in root directory of AndroidDriver for Python
2529
4. 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
4347
from 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

5257
If you want more detailed example, plz check [example.py](AndroidWebDriver4Python/blob/master/example/example.py)

0 commit comments

Comments
 (0)