Introduction

A resource file containing all global elements (Variables, keywords) to help DLUX csit testing.

Keywords

Documentation

Checks if a folder named 'phantomjs' is found in the robot script directory. Checks if PhantomJS already been downloaded. This check is done by listing the directory and verification if there is one containing the word 'phantomjs'. Result is that the PhantomJS compressed file is downloaded and uncompressed locally related to the path of the running script.

Documentation

Closes all browser instances and terminates Xvfb if the process is running.

Documentation

Downloads and uncompress the headless browser PhantomJS.

Arguments

element

Documentation

Clicks the element with previous element visibility check and element focus.

Documentation

Returns the path of the executable headless browser.

Arguments

element_to_be_clicked element_to_be_checked

Documentation

Clicks the ${element_to_be_clicked} and verifies that page contains ${element_to_be_checked}.

Documentation

Launches with a delay to let the page load. If it cannot run the default browser, it will download PhantomJS and use it instead. Steps of Launch DLUX are the following: 1. Trying to start Xvfb and load the browser defined by the variable ${BROWSER}. 2. If failed to start one of those task: 2.1 Download and extract PhantomJS if not already done 2.2 Create a custom PhantomJS webdriver based on the downloaded one 3. Go to DLUX login URL and wait until the HTML page contains a specific element.

Arguments

username password

Documentation

Inserts username and password and logs in DLUX.

Arguments

username password

Documentation

Tries to log in to DLUX with invalid credentials and verifies occurence of the error message.

Arguments

element

Documentation

Clicks the element by imitating mouse left button click down and click up.

Arguments

LOGIN URL

Documentation

Loads DLUX login page.

Arguments

url

Documentation

Failback browser, download and use the WebKit headless browser PhantomJS.

Documentation

Tries to open Dlux login page. If it fails, then launches Dlux using xvfb or headless browser.

Documentation

Opens or launches Dlux and then logs in to Dlux.

Documentation

Starts xvfb, a kind-ish x-server on RAM.

Arguments

element

Documentation

Similar to Selenium2Library.Wait Until Page Contains Element but returns web page source code when fails.

Arguments

element_to_be_clicked element_to_be_checked

Documentation

Combines clicking ${element_to_be_clicked} and checking that ${element_to_be_checked} is visible with BuiltIn.Wait Until Keyword Succeeds keyword in order to secure reliable execution of Selenium2Library.Click Element keyword in AngularJS webapp.

Arguments

port
= ${XVFB_PORT}

Documentation

Sets the environment variable used by xvfb and the browser.

Documentation

Verifies elements presence in DLUX login page.

GUIKeywords

image/svg+xml