Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

The Python Web Auto Drive framework using selenium.webdriver.

Project description

The Python Web Auto Drive Framework.

The pywad is framework for driving the web browser automatically,
using selenium. Need Selenium and python binding of it(selenium-2.35.0 or later).
And need the Chrome Driver if you want to be use Google Chrome.
But we have not been able to support it not yet.
Now, Firefox only.


Need Selenium,

Next, execute command.::

$ pip install pywad

How to use

The pywad.Part control the browser when pywad.Part.is_target() return True.
:term:`browser` is a selenium's WebDriver object. :term:`status` is a dictionaly,
but anything ok. The mission of it is to communicate datas for other part object.

For example,

from pywad import Part
from pywad.decorator import url_match

class GoogleTop(Part):
def _is_search_button(self, text):
for word in self.search_words:
if word in text:
return True

def is_target(self, browser, status):
return True

def run(self, browser, status):
entries = browser.find_elements_by_css_selector('input')
for entry in entries:
if entry.get_attribute('type') == 'text':

Next, let running it using Runner object. The Runner object is list-like object.
It expects that the Part object enters. Run the parts objects if execute


def main():
url = ''
runner = Runner()

if __name__ == '__main__':

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pywad, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size pywad-0.1.4.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page