Skip to content

Pro Functions

NzBernadine edited this page Feb 10, 2022 · 4 revisions

Pro Functions Blocks

Telegram

Sends a Telegram notification, for example, to update on automation completion or exception.
First, message @taguibot to authorise it to send messages to your Telegram.
The id can be an integer or a string.
image

Keyboard Key

Enters keystrokes directly
image

Mouse move

Explicitly sends a mouse event at the current mouse position.
image

Wait

This following block explicitly waits for some time.
The default time is 5 second
wait_snip

Create csv & upload website

Saves table data to a CSV file, based on the table number on the webpage or its XPath identifier.
Uploads file to a website, the element identifier(first input) can only be a CSS.
Example

r.table(“//table[@name='report']”, ‘report.csv’)

image

Download & unzip & r.frame(main_frame id or name, sub_frame)

download from URL to file
unzip the zip file to the specified location
set web frame
the filename to save and sub frame(second input) are optional.
if destionation file omits, download and unzip into current folder.

Example

r.download('http://rpachallenge.com/assets/downloadFiles/challenge.xlsx')

download_snip

Popup

The following block set the context to the web popup tab.
Empty input reset to the main page.
popup

Run in cmd prompt & run dom

Runs a command in Command Prompt or Terminal and return the output
Runs code in the browser dom and saves returned value
statement_to_run is javascript code

Example

r.dom('window.open("https://developer.automationanywhere.com/challenges/AutomationAnywhereLabs-POTrackingLogin.html")')
The box allows you to choose which command you want to perform

image

Run Python

Runs Sikuli code.
the input is a Python code for SikuliX

r.vision('Screen(1).click("d:/tagui/img1.png")')

image

Timeout

Changes the auto-wait timeout when waiting for web elements to appear. The default time is 10 seconds.
A blank input returns the current timeout
timeout_snip

Clone this wiki locally