Skip to main content

Seleasy

A simplified Selenium wrapper library with a clean, chainable API for common browser automation tasks. Built on top of Selenium WebDriver and BeautifulSoup4.

Installation

pip install seleasy

Quick Start

from seleasy import Seleasy

# Initialize with your preferred browser
es = Seleasy(browser='edge')  # or 'chrome', 'firefox', 'safari'

# Navigate to a URL
es.get('https://www.example.com')

# Wait for and click an element
es.click_element('button', 'text', 'Login', delay=10)

# Type text into an input
es.input_text('input', 'id', 'username', text='myuser')

# Scroll the page
es.roll_move('div', 'class', 'content-area', delta_y=400)

# Get page source
html = es.get_html_source('page.html')

# Parse with BeautifulSoup
soup = es.get_soup()

# Clean up
es.quit()

Features

  • Multi-browser support: Edge, Chrome, Firefox, Safari
  • Smart element location: Find elements by tag + attribute + value
  • Auto-wait: Built-in WebDriverWait with configurable timeout
  • JS clicks: Click via JavaScript to bypass overlay issues
  • Scroll & hover: Mouse wheel scroll, smooth scrollIntoView, hover actions
  • iframe management: Switch into/out of frames with simple API
  • BeautifulSoup integration: Parse page HTML directly
  • Screenshots & page source: Save screenshots and HTML with one line

Supported Browsers

Browser Argument
Edge 'edge'
Chrome 'chrome'
Firefox 'firefox'
Safari 'safari'

Requirements

  • Python 3.8+
  • selenium >= 4.0.0
  • beautifulsoup4 >= 4.9.0
  • A matching WebDriver for your browser (managed automatically by Selenium Manager)

License

MIT

Download files

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

Source Distribution

seleasy-1.0.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

seleasy-1.0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file seleasy-1.0.1.tar.gz.

File metadata

  • Download URL: seleasy-1.0.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.4

File hashes

Hashes for seleasy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6fd0dc00a05802dbd272cd379aea90b1bf815be04252dfd216fd85fe78d1502d
MD5 6ac596815883e53f0446444ea98e25d6
BLAKE2b-256 5a961b1354dd61664f6cc595b92dc68886b128f927b374d54331fcc70e1c3c35

See more details on using hashes here.

File details

Details for the file seleasy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: seleasy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.4

File hashes

Hashes for seleasy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86b3fc0760e53af1c3c31f9eaba35b290422f9d06c76952bfabf074fe263e3e8
MD5 d17965d10be29a67283980973fd10ced
BLAKE2b-256 5188c3f339c0f4be836e34abf6e18ad25034795e9e08f4eb4e60a2ef281091dd

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