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
WebDriverWaitwith 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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fd0dc00a05802dbd272cd379aea90b1bf815be04252dfd216fd85fe78d1502d
|
|
| MD5 |
6ac596815883e53f0446444ea98e25d6
|
|
| BLAKE2b-256 |
5a961b1354dd61664f6cc595b92dc68886b128f927b374d54331fcc70e1c3c35
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86b3fc0760e53af1c3c31f9eaba35b290422f9d06c76952bfabf074fe263e3e8
|
|
| MD5 |
d17965d10be29a67283980973fd10ced
|
|
| BLAKE2b-256 |
5188c3f339c0f4be836e34abf6e18ad25034795e9e08f4eb4e60a2ef281091dd
|