Skip to main content

Web automation library for python for web browser automation and end to end UI testing.

webbot provides a much feature rich automation than selenium for all kinds of automation of webpage. Since the major portion of web automation is to perform actions like click and type into webpage elements , webbot automatically handles finding the right elements to perform the actions.

Features :

  • Use any combination of selectors like id, name, text, css etc to perform actions on elements with one line of code.

  • Automate and test pages loaded dynamically by javascript.

  • Click any button or link without having to worry about finding the element first or knowing css_selectors , xpath etc

  • Smart scoring algorithm which finds the best matching elements on which you want to perform the action .

  • Automation designed to work even in case of webpages with dynamically changing id and classname

  • Immensely minimizes the code required for performing input actions like clicks and keyboard actions.

  • Get webpage source , cookies , total tabs , webpage title etc..

  • Simulate key presses and special key combinations

  • Bidirectional scrolling

  • Perform an action on webpage elements by applying various filters to select the elements .

  • Perfrom action on multiple elements at once.

  • If certain elements don’t have text or visible property , then use either their id , class , css_selector , xpath , tag etc.

  • The entire automation process can be made without having to open the browser window i.e in the background as a console process (see docs for more details )


Installation :

pip install webbot

If “No distribution found error occurs” just update setuptools using pip install --upgrade setuptools

Quickstart :

Demo code 0 :

from webbot import Browser
web = Browser()
web.go_to('google.com')
web.type('hello its me')  # or web.press(web.Key.SHIFT + 'hello its me')
web.press(web.Key.ENTER)
web.go_back()
web.click('Sign in')
web.type('mymail@gmail.com' , into='Email')
web.click('NEXT' , tag='span')
web.type('mypassword' , into='Password' , id='passwordFieldId')
web.click('NEXT' , tag='span') # you are logged in . woohoooo

Demo code 1 :

If multiple buttons with similar properties are to be clicked at once

web = Browser()
web.go_to('siteurl.com')
web.click('buttontext' , multiple = True)

Demo code 2 :

If there are multiple elements and you want to perform action on one of them

web = Browser()
web.go_to('siteurl.com')

# types the text into the 3rd input element when there are multiple input elements with form-input class
web.type('im robo typing' , number = 3 , classname="form-input" )

web.click('Post')

Download files

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

Source Distribution

webbot-0.33.tar.gz (12.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webbot-0.33-py3-none-any.whl (12.9 MB view details)

Uploaded Python 3

File details

Details for the file webbot-0.33.tar.gz.

File metadata

  • Download URL: webbot-0.33.tar.gz
  • Upload date:
  • Size: 12.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for webbot-0.33.tar.gz
Algorithm Hash digest
SHA256 aef860ccd0052ece5bfdb5559b58a9b54add0d49a895062f1bc01ecd8448c540
MD5 4c81f9933a5f9b8d6cf8f733a011db3e
BLAKE2b-256 5b2c796635d3a9659e2ce09866d0abb33211bc327026bf462a5626a79125cfed

See more details on using hashes here.

File details

Details for the file webbot-0.33-py3-none-any.whl.

File metadata

  • Download URL: webbot-0.33-py3-none-any.whl
  • Upload date:
  • Size: 12.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for webbot-0.33-py3-none-any.whl
Algorithm Hash digest
SHA256 1ac3873a10f3eaf382fe0479265ba7e392f58ae0cc6fccd3138a56456e9150c8
MD5 1da5a19162d7c08671268eb716c2d1d7
BLAKE2b-256 159b5cd377d900a4428fc8ccc789b284a4250d34b7f97879a0cf43a60753b9c4

See more details on using hashes here.

Release history Release notifications | RSS feed

0.34

2 files

This release

0.33 This release

2 files

0.3

2 files

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page