From d3edb5d2910c95d311abe54e67173c15cc1ebdee Mon Sep 17 00:00:00 2001 From: Sean Wang Date: Thu, 20 Oct 2011 17:13:36 +0800 Subject: [PATCH] make clear about the example --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c816127..0129d8d 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,9 @@ $ python setup.py install Here you have installed this AndroidWebDriver4Python add-on. There are some prerequisites to use AndroidWebDriver4Python. -* [Install Android SDK](http://developer.android.com/sdk/installing.html) and set its 'tools' and 'platform-tools' in your PATH +* [Install Android SDK](http://developer.android.com/sdk/installing.html) and set its `tools` and `platform-tools` in your PATH * Install Android server side application [android-server-2.x.x.apk](http://code.google.com/p/selenium/downloads/list) on your device -* enable 'USB Debugging' in your device and disable autolock, which normally could found from -> Home>Settings>Applications>Development>USB debugging +* enable `USB Debugging` in your device and disable autolock, which normally could found from `Home>Settings>Applications>Development>USB debugging` * connect USB cable between device and PC, install adb drivers @@ -46,6 +45,8 @@ There are some prerequisites to use AndroidWebDriver4Python. ```python from selenium import webdriver +# if only one device connected, you do not need to specifiy the serial id. +# exmaple driver=webdriver.Android() driver1= webdriver.Android('HT1234567') driver2=webdriver.Android('091012345601E00D') driver1.get("http://www.symbio.com")