Simplify RPA activities with a browser.
Project description
pyrpabrowserdemo
pyrpabrowserdemo is a Python library for web automation tasks using the Robot Process Automation (RPA) approach. It provides a simplified interface for interacting with web pages using Selenium WebDriver and HTTP requests.
Features
- Browser Automation: Automate web interactions such as opening browsers, navigating to URLs, clicking elements, filling forms, and more.
- Frame Handling: Easily switch between frames within a web page.
- File Download: Download files from URLs using HTTP requests.
- Element Interaction: Click on elements by XPath, ARIA labels, or select elements within frames.
- Wait Conditions: Wait for elements to become visible before interacting with them.
Installation
You can install pyrpabrowserdemo via pip:
pip install pyrpabrowserdemo
Usage
from pyrpabrowserdemo import Browser
# Create a browser instance
browser = Browser()
# Open a browser and navigate to a URL
browser.open_browser("https://example.com")
# Fill a form field
browser.fill("//input[@id='username']", "my_username")
# Click on a button by ARIA label
browser.click_by_aria_label("Submit")
# Switch to a frame by XPath
browser.change_to_frame("//iframe[@class='frame']")
# Click on an element by XPath
browser.click("//button[@id='submit']")
# Download a file from a URL
browser.download_file("https://example.com/download/file.pdf")
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
Built Distribution
File details
Details for the file pyrpabrowserdemo-0.0.5.tar.gz
.
File metadata
- Download URL: pyrpabrowserdemo-0.0.5.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b5cc01d952fac4c905c74afcf62c38fd31198f41ceb6b3b12cbede7fb12023d |
|
MD5 | 8c6e1f8e955d9cb511c139ac5c32a45a |
|
BLAKE2b-256 | 89acbf8e08b5d55fcf6e3bac41165887106ba4ce46c486aa4cc171cb66958f99 |
File details
Details for the file pyrpabrowserdemo-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: pyrpabrowserdemo-0.0.5-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e40e51601fc821a24beed3d69cb90ba2f19cb12fee4b312dba6723ccd781bdb |
|
MD5 | d98bdbfc31b3f50b3e790287a7733956 |
|
BLAKE2b-256 | 3aa0de0c74fe41d7a81c1fa02351357a8dad4219f44037db0ec64894f28e71eb |