Robot Framework Automation Cheat Sheet
by srinivas.skc via cheatography.com/122692/cs/22903/
Built In Library Built In Library (cont) Built In Library (cont)
Log message Logs the given Set *values Returns the Convert item, Converts the
message with Variable given values To precision‐ given item to a
the given which can then Number =Value floating point
level. be assigned to number based
Log Many *messages Logs the given a variables. on precision
messages as set condition, Sets variable Convert item, Converts the
separate variable *values based on the To Octal {base=‐ given item to an
entries using if given None, octal string.
the INFO condition. prefix‐
level. Set name, *values Makes a =None,
Log To message Logs the given Global variable length‐
Console message to Variable available =None}
the console. globally in all Convert item, Converts the
Set Log level Sets the log tests and To {base=‐ given item to a
Level threshold to suites. Binary None, binary string.
the specified Convert item, Converts the prefix‐
level and To base=None given item to =None,
returns the old Integer an integer length‐
level. number based =None}
Sleep _time_ on base value Evaluate expression, Evaluates the
Convert item Converts the {modules=‐ given expression
Run name, Executes the
To given item to None, in Python and
Keyword *args given keyword
Boolean Boolean true namesp‐ returns the
with the given
or false. ace=None} result.
arguments.
Convert input, input_‐ Converts the Create *items Returns a list
Run name, Runs the
To type=text given input to List containing given
Keyword If *args given keyword
Bytes bytes items.
All Critical with the given
Tests arguments, if according to EXIT Stops executing
Passed all critical tests the input_type. FOR the enclosing for
passed. Convert item, {base=‐ Converts the LOOP loop.
To Hex None, prefix‐ given item to a EXIT condition Stops executing
=None, hexadecimal FOR the enclosing for
length=None, string. LOOP loop if the
lowercase‐ IF condition is true.
=False}
By srinivas.skc Not published yet. Sponsored by Readable.com
cheatography.com/srinivas- Last updated 20th May, 2020. Measure your website readability!
skc/ Page 1 of 2. https://readable.com
Robot Framework Automation Cheat Sheet
by srinivas.skc via cheatography.com/122692/cs/22903/
Shortcuts Selenium Library - Part 1 (cont) Selenium Library - Wait Functions
Force Close taskkill /f /im chrome‐ Go To URL Set value Sets the implicit
Chrome Drivers driver.exe Mouse Locator Selenium wait value used by
Over Implicit Wait Selenium.
Selenium Library - Browsers
Mouse Locator
Selenium Library - Part 2
Firefox ff, firefox Out
Google googlechrome, chrome, Close Closes the current browser.
Mouse Locator
Chrome gc Browser
Down
Internet internetexplorer, ie Close All Closes all open browsers
Mouse Locator
Explorer Browsers and resets the browser
Up
cache.
Edge edge Mouse Locator
Maximize Maximizes current browser
Down
Selenium Library - Part 1 Browser window.
On Link
Window
Open Browser URL Browser Mouse Locator
Reload Simulates user reloading
Go To URL Down
Page page.
on
Capture Element Locator filename=‐
Image Go Back Simulates the user clicking
Screenshot File.png
the back button on their
Input Locator Text
Capture Page filename=‐ browser.
Text
Screenshot File.png
Page Locator {message: Verifies
Checkbox Should Locator
Should NoneTy‐ that
Be Selected
Contain pe=None, element
Checkbox Should Locator
Element loglevel=‐ locator is
Not Be Selected
TRACE, found on
Choose File Locator FilePath limit: the
(Forward NoneTy‐ current
Slash /) pe=None} page.
Click Button Locator GET Locator Returns
Click Element Locator TEXT the text
value of
the
element
identified
by
locator.
Input Locator Text, Types
Text {clear: the given
bool=True} text into
the text
field
identified
by
locator.
By srinivas.skc Not published yet. Sponsored by Readable.com
cheatography.com/srinivas- Last updated 20th May, 2020. Measure your website readability!
skc/ Page 2 of 2. https://readable.com