Skip to main content

WebLair Async:

Browser Control Functions

start_chromium(url=None, headless=False, **kwargs)

Starts a Chromium browser instance Returns a Page object Optional URL to navigate to Configurable headless mode and additional options

start_firefox(url=None, headless=False, **kwargs)

Starts a Firefox browser instance Similar to start_chromium but for Firefox

go_to(url, page=None)

Navigates to a specified URL Automatically adds 'http://' if protocol not specified

kill_browser(page=None)

Closes the browser and cleans up resources Resets browser manager state

Interaction Functions

write(text, page=None, into=None)

Types text into fields Can target specific field by label or placeholder Works with focused element if no target specified

click(element, page=None)

Clicks on elements identified by text, Point, or element reference Works with buttons, links, and any clickable elements

press(key, page=None)

Simulates keyboard key press Works with Keys class constants (ENTER, TAB, etc.)

hover(element, page=None)

Moves mouse over specified element Accepts text, element handle, or locator

scroll_to(element, page=None)

Scrolls element into view Works with text or element references

Element Classes

Button(text=None, page=None)

Methods:

exists(): Checks if button exists is_enabled(): Checks if button is enabled

TextField(label=None, page=None)

Methods:

exists(): Checks if field exists value(): Gets current text value type(text): Types text into field

Link(text=None, page=None)

Methods:

exists(): Checks if link exists href(): Gets link URL

Alert(page=None)

Methods:

accept(): Accepts dialog dismiss(): Dismisses dialog text(): Gets alert message

Helper Classes

Point(x, y)

Represents screen coordinates Supports addition/subtraction for offset calculations

Keys

Constants for keyboard keys Examples: ENTER, TAB, ESCAPE, etc.

Config

Configuration settings Properties:

implicit_wait_secs browser_type default_timeout screenshot_dir viewport_size

Utility Functions

find_all(element_type, page=None)

Finds all elements of specified type (Button, TextField, Link) Returns list of elements

wait_until(condition_fn, timeout=None, page=None)

Waits for condition to be true Supports both sync and async conditions Configurable timeout

attach_file(file_path, to=None, page=None)

Handles file uploads Can target specific file input

get_text(element, page=None)

Gets text content of element Works with various element types

take_screenshot(path, full_page=False, page=None)

Captures screenshot Optional full page capture

Metadata

Release files for weblair 0.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for weblair 0.0.15
File Size Uploaded Provenance
weblair-0.0.15.tar.gz 16.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for weblair 0.0.15
File Interpreter ABI Platform
weblair-0.0.15-py3-none-any.whl Python 3 none any Details

Total release size: 34.0 kB

Release files / weblair-0.0.15.tar.gz

Download URL weblair-0.0.15.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a29939d10d3a75be90943fa71619b35e273519a6873050c575f19f66fa212215
BLAKE2b-256 checksum
How to use checksums
a7c4862f321a718922b861224088f7f945f3625509f375e5f15d6007dd40a7a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.11.0rc1 Linux/6.8.0-52-generic

Release files / weblair-0.0.15-py3-none-any.whl

Download URL weblair-0.0.15-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b89499667de4d05a68d66bc0a183695e326113bc9ca6f0a353ff4525507a6ef
BLAKE2b-256 checksum
How to use checksums
9786eb6ed29d9ab198671b58e28365d91eb027844f2154ca358fead2ca2609eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.11.0rc1 Linux/6.8.0-52-generic

Security for weblair 0.0.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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