Androiddriver-perform selenium test in andriod
The android driver uses the remotewebdriver. the client side is your test code. the server side is an application that gets installed on the android emulator or device. it uses the remotewebdriver server component and embeds a light-weight HTTP server (jetty ). the client and the server communicate using the wire protocol which consists of rest requests using JSON over HTTP. the application executes the tests in the context of an android webview.
Pros & conspros
- Runs in Android Browser
- Uses native touch events to emulate User Interaction
- Runs on emulator and Device
Cons
- Slower than headless WebKit driver
- Support for SDK versions 2.2 and prior, has been deprecated. the driver is unlikely to work reliably on these versions. there were several limitations, for instance XPath wasn' t supported natively and the android driver used to inject an XPATH library in webview. we recommend using devices with version 2.2 or later.
- Does not work on emulators running 2.3 because of an emulator bug that shocould be fixed soon by Android. However it works on devices running 2.3 and higher (and runs much faster on those ).
Http://code.google.com/p/selenium/wiki/AndroidDriver