Skip to main content

Web Browser automation library for python with more features and simpler api than selenium

Project description

Web automation library for python which is based on the selenium framework for web browser automation.

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 :

  • click any button or link without having to worry about finding the element first or knowing css_selector etc

  • Automation works even in case of webpages with dynamically changing id and classname

  • type text into input fields

  • Smart scoring algorithm which finds the best match for the element on which you want to perform the action .

  • 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.


Installation :

pip install webbot

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 . oohoooo

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')

Documentation :

https://webbot.readthedocs.io

Project details


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.0.1.win-amd64.zip (16.9 kB view details)

Uploaded Source

Built Distribution

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

webbot-0.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file webbot-0.0.1.win-amd64.zip.

File metadata

  • Download URL: webbot-0.0.1.win-amd64.zip
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for webbot-0.0.1.win-amd64.zip
Algorithm Hash digest
SHA256 34c4e6b6550e00541a9eb2eed2a6248e5e0c0d79c353f2a0d9706bb7d4c96be1
MD5 6f16aaf249bc8a6eabfe7dd0f5d6d552
BLAKE2b-256 0f04ab4d1d1659bc5c694ca42f663aba590f4f9dda0072464fe6084dc0517264

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for webbot-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 89cebba3ee9f31d5cf3f62292253a1a3212b62283ca4c2e14e39a0a34a52b669
MD5 1453911db7c22699f37f9f961b704e45
BLAKE2b-256 796fc7c569abd5d3f5074a337e07150b5d71d3b5e010bd38f52f1a8448fa424c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page