Skip to main content

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

pyrpabrowserdemo-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pyrpabrowserdemo-0.0.1-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file pyrpabrowserdemo-0.0.1.tar.gz.

File metadata

  • Download URL: pyrpabrowserdemo-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for pyrpabrowserdemo-0.0.1.tar.gz
Algorithm Hash digest
SHA256 78e4aa6c42fa04762d646e41c8eec64e6ce4758b64200d895a8fb5a390b6cc3e
MD5 6f1804923dd1810e6028455634d850cc
BLAKE2b-256 42a6d368355a3161a4f6614d2ec34c05693ae48d918d272f2d4efa720d00bdc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrpabrowserdemo-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f122c7b96e0d38cc8d26b830c8dd876e119b965f3257a339e763e20dd51ff47b
MD5 c2a7703cdc4029700d81cdbda5eb91ab
BLAKE2b-256 bf58329d9ae357169449e01ea39d4b1538385c7a2dee62f6ddb70a28312d67e8

See more details on using hashes here.

Supported by

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