### Install RPA for Python Source: https://github.com/tebelorg/rpa-python/blob/master/README.md This command installs the RPA for Python library using pip, the standard package installer for Python. It is the first step required to use the library. ```bash pip install rpa ``` -------------------------------- ### Perform Visual Automation with RPA Python Source: https://github.com/tebelorg/rpa-python/blob/master/README.md This example shows how to use visual automation to interact with desktop applications based on images. It initializes RPA with visual automation enabled and performs clicks and typing using image filenames as targets. ```python r.init(visual_automation = True) r.dclick('outlook_icon.png') r.click('new_mail.png') ... r.type('message_box.png', 'Hi Gillian,[enter]This is ...') r.click('send_button.png') r.close() ``` -------------------------------- ### Perform Keyboard Automation with RPA Python Source: https://github.com/tebelorg/rpa-python/blob/master/README.md This example demonstrates sending keyboard commands and text using RPA for Python. It requires visual automation and shows simulating key presses like Cmd+Space, typing application names, and using modifier keys. ```python r.init(visual_automation = True, chrome_browser = False) r.keyboard('[cmd][space]') r.keyboard('safari[enter]') r.keyboard('[cmd]t') r.keyboard('snatcher[enter]') r.wait(2.5) r.snap('page.png', 'results.png') r.close() ``` -------------------------------- ### Upload File to Secure Temporary Storage with RPA Python Source: https://github.com/tebelorg/rpa-python/blob/master/README.md This example uses the `r.bin` function to upload a specified file to a secure temporary storage service (PrivateBin). It returns the URL where the file is stored and can optionally include a password for access. ```python bin_url = r.bin('secret_agent_report.pdf', 'optional password') ``` -------------------------------- ### Perform Mouse Automation with RPA Python Source: https://github.com/tebelorg/rpa-python/blob/master/README.md This snippet shows how to control the mouse cursor using coordinates and image targets. It includes examples of typing at specific screen locations, clicking, hovering, and simulating a drag-and-drop operation. ```python r.init(visual_automation = True) r.type(600, 300, 'neo kobe city') r.click(900, 300) r.snap('page.png', 'results.png') r.hover('button_to_drag.png') r.mouse('down') r.hover(r.mouse_x() + 300, r.mouse_y()) r.mouse('up') r.close() ``` -------------------------------- ### Perform Web Automation with RPA Python Source: https://github.com/tebelorg/rpa-python/blob/master/README.md This snippet demonstrates basic web automation steps using RPA for Python. It initializes the automation, navigates to a URL, types text into a search field, waits for the page to load, takes a screenshot, and closes the browser. ```python r.init() r.url('https://duckduckgo.com') r.type('//*[@name="q"]', 'decentralisation[enter]') r.wait() # ensure results are fully loaded r.snap('page', 'results.png') r.close() ``` -------------------------------- ### Initializing RPA in Turbo Mode (Python) Source: https://github.com/tebelorg/rpa-python/blob/master/README.md Shows how to initialize the RPA for Python library with turbo mode enabled for faster execution using the `init()` function, overriding the default human speed. ```Python init(turbo_mode = True) ``` -------------------------------- ### Clicking UI Element using Image (Python) Source: https://github.com/tebelorg/rpa-python/blob/master/README.md Demonstrates how to click a UI element identified by an image file path using the `r.click()` function in RPA for Python. If the image is not found, OCR is used to search for text. ```Python r.click('Submit Form.png') ``` -------------------------------- ### Waiting for Element using Hover (Python) Source: https://github.com/tebelorg/rpa-python/blob/master/README.md Mentions using the `hover()` function as a method to wait for an element to appear on the screen until the configured timeout value is reached. ```Python hover() ``` -------------------------------- ### Perform OCR Automation with RPA Python Source: https://github.com/tebelorg/rpa-python/blob/master/README.md This snippet illustrates using Optical Character Recognition (OCR) to read text from images or screen regions. It requires visual automation and shows reading text from image files and a defined screen area based on mouse coordinates. ```python r.init(visual_automation = True, chrome_browser = False) print(r.read('pdf_report_window.png')) print(r.read('image_preview.png')) r.hover('anchor_element.png') print(r.read(r.mouse_x(), r.mouse_y(), r.mouse_x() + 400, r.mouse_y() + 200)) r.close() ``` -------------------------------- ### Import RPA Library in Python Source: https://github.com/tebelorg/rpa-python/blob/master/README.md This Python statement imports the RPA library, commonly aliased as 'r' for brevity. This import is necessary in any Python script or environment where you intend to use the RPA functions. ```python import rpa as r ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.