# 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:
```bash
pip install pyrpabrowserdemo
```
## Usage
```python
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")
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pyrpabrowserdemo",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python, rpa, robocorp, pdf, html, conversor",
"author": "Daniel Rubens",
"author_email": "danielrubensdaniel@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/89/ac/bf8e08b5d55fcf6e3bac41165887106ba4ce46c486aa4cc171cb66958f99/pyrpabrowserdemo-0.0.5.tar.gz",
"platform": null,
"description": "\n# pyrpabrowserdemo\n\npyrpabrowserdemo 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.\n\n## Features\n\n- **Browser Automation**: Automate web interactions such as opening browsers, navigating to URLs, clicking elements, filling forms, and more.\n- **Frame Handling**: Easily switch between frames within a web page.\n- **File Download**: Download files from URLs using HTTP requests.\n- **Element Interaction**: Click on elements by XPath, ARIA labels, or select elements within frames.\n- **Wait Conditions**: Wait for elements to become visible before interacting with them.\n\n## Installation\n\nYou can install pyrpabrowserdemo via pip:\n\n```bash\npip install pyrpabrowserdemo\n```\n\n## Usage\n\n```python\nfrom pyrpabrowserdemo import Browser\n\n# Create a browser instance\nbrowser = Browser()\n\n# Open a browser and navigate to a URL\nbrowser.open_browser(\"https://example.com\")\n\n# Fill a form field\nbrowser.fill(\"//input[@id='username']\", \"my_username\")\n\n# Click on a button by ARIA label\nbrowser.click_by_aria_label(\"Submit\")\n\n# Switch to a frame by XPath\nbrowser.change_to_frame(\"//iframe[@class='frame']\")\n\n# Click on an element by XPath\nbrowser.click(\"//button[@id='submit']\")\n\n# Download a file from a URL\nbrowser.download_file(\"https://example.com/download/file.pdf\")\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Simplify RPA activities with a browser.",
"version": "0.0.5",
"project_urls": null,
"split_keywords": [
"python",
" rpa",
" robocorp",
" pdf",
" html",
" conversor"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3aa0de0c74fe41d7a81c1fa02351357a8dad4219f44037db0ec64894f28e71eb",
"md5": "d98bdbfc31b3f50b3e790287a7733956",
"sha256": "8e40e51601fc821a24beed3d69cb90ba2f19cb12fee4b312dba6723ccd781bdb"
},
"downloads": -1,
"filename": "pyrpabrowserdemo-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d98bdbfc31b3f50b3e790287a7733956",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 23152,
"upload_time": "2024-04-23T16:54:16",
"upload_time_iso_8601": "2024-04-23T16:54:16.869020Z",
"url": "https://files.pythonhosted.org/packages/3a/a0/de0c74fe41d7a81c1fa02351357a8dad4219f44037db0ec64894f28e71eb/pyrpabrowserdemo-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "89acbf8e08b5d55fcf6e3bac41165887106ba4ce46c486aa4cc171cb66958f99",
"md5": "8c6e1f8e955d9cb511c139ac5c32a45a",
"sha256": "8b5cc01d952fac4c905c74afcf62c38fd31198f41ceb6b3b12cbede7fb12023d"
},
"downloads": -1,
"filename": "pyrpabrowserdemo-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "8c6e1f8e955d9cb511c139ac5c32a45a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5617,
"upload_time": "2024-04-23T16:54:20",
"upload_time_iso_8601": "2024-04-23T16:54:20.123987Z",
"url": "https://files.pythonhosted.org/packages/89/ac/bf8e08b5d55fcf6e3bac41165887106ba4ce46c486aa4cc171cb66958f99/pyrpabrowserdemo-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-23 16:54:20",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pyrpabrowserdemo"
}