{"id":17126228,"url":"https://github.com/truebit/androidwebdriver4python","last_synced_at":"2025-04-13T06:27:14.411Z","repository":{"id":1748013,"uuid":"2574105","full_name":"truebit/AndroidWebDriver4Python","owner":"truebit","description":"add Android WebDriver support for Selenium Python Bindings","archived":false,"fork":false,"pushed_at":"2011-10-20T09:15:32.000Z","size":141,"stargazers_count":31,"open_issues_count":1,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-26T23:03:13.603Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/truebit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-14T03:40:37.000Z","updated_at":"2024-11-28T10:53:21.000Z","dependencies_parsed_at":"2022-09-08T02:43:09.117Z","dependency_job_id":null,"html_url":"https://github.com/truebit/AndroidWebDriver4Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truebit%2FAndroidWebDriver4Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truebit%2FAndroidWebDriver4Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truebit%2FAndroidWebDriver4Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truebit%2FAndroidWebDriver4Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truebit","download_url":"https://codeload.github.com/truebit/AndroidWebDriver4Python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248672973,"owners_count":21143399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T18:47:21.888Z","updated_at":"2025-04-13T06:27:14.360Z","avatar_url":"https://github.com/truebit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\r\n\r\n_Author: Sean Wang xiao.wang@symbio.com_\r\n\r\nAndroidWebDriver4Python is an addon to [Selenium Python Client Driver](http://pypi.python.org/pypi/selenium)\r\n\r\nThis addon supports multiple real devices simultaneously from release 1.1, but not supports emulators. I have not figured out yet.\r\n\r\n\r\nAs I could not find Android WebDriver implementation in it,and I really like Python as opposed to Java. So I want to implement one.\r\nI know that I am a newbie, I do not expect to commit in the Selenium project.\r\n\r\n\r\nMore infomation about *Selenium*, plz check http://code.google.com/p/selenium/\r\n\r\n# Installing\r\n\r\nTo install this AndroidDriver for Python, you need:\r\n\r\n1. download AndroidWebDriver4Python using command: \r\n\r\n```\r\n$ git clone git://github.com/truebit/AndroidWebDriver4Python.git\r\n```\r\n\r\n2. download and extract [Selenium Python client](http://pypi.python.org/pypi/selenium#downloads)\r\n3. copy the entire `py` folder under AndroidWebDriver4Python to merge the\r\nsame one in root directory of AndroidDriver for Python\r\n4. back to the root directory of Selenium Python Client, to install this modified version using command:\r\n\r\n```\r\n$ python setup.py install\r\n```\r\n\r\nHere you have installed this AndroidWebDriver4Python add-on.\r\nThere are some prerequisites to use AndroidWebDriver4Python.\r\n\r\n* [Install Android SDK](http://developer.android.com/sdk/installing.html) and set its `tools` and `platform-tools` in your PATH\r\n* Install Android server side application [android-server-2.x.x.apk](http://code.google.com/p/selenium/downloads/list) on your device\r\n* enable `USB Debugging` in your device and disable autolock, which normally could found from `Home\u003eSettings\u003eApplications\u003eDevelopment\u003eUSB debugging`\r\n\r\n* connect USB cable between device and PC, install adb drivers\r\n\r\n# Example\r\n```python\r\nfrom selenium import webdriver\r\n\r\n# if only one device connected, you do not need to specifiy the serial id.\r\n# exmaple driver=webdriver.Android()\r\ndriver1= webdriver.Android('HT1234567')\r\ndriver2=webdriver.Android('091012345601E00D')\r\ndriver1.get(\"http://www.symbio.com\")\r\ndriver2.get(\"http://www.google.com.hk\")\r\ndriver1.quit()\r\ndriver2.quit()\r\n```\r\n\r\nIf you want more detailed example, plz check [example.py](AndroidWebDriver4Python/blob/master/example/example.py)\r\n\r\n# Documentation\r\n\r\nThe latest [Selenium Python Bindings documentation](http://readthedocs.org/docs/selenium-python/en/latest)\r\n\r\n# Use The Source Luke!\r\n\r\nAs this Android Driver I implemented is herited from [webdriver.py](http://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/remote/webdriver.py), so plz see its source code to use Android driver just like other WebDriver.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruebit%2Fandroidwebdriver4python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruebit%2Fandroidwebdriver4python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruebit%2Fandroidwebdriver4python/lists"}