Skip to content

SeleniumConfigurationStepdefs

Antoine Neveux edited this page Feb 5, 2015 · 1 revision

#Selenium Configuration Stepdefs

Version 1.0, written by mechikhi, generated by Docukes on Thu Feb 05 18:39:14 CET 2015

##Description

This class allow to configure the environment for the execution of testcases.

##Stepdefs

###before

Syntax: Before: null

Documentation:

Defines the sleeping time to apply for a scenario

###define Base Url

Syntax: Given: "^the base url is \"(.*?)\"$"

Documentation:

Defines the base URL to be used for running the Selenium tests

###define The Element Identifying The Loading Progress

Syntax: Given: "^the loading progress is identified by the element having (id|name|class|css|link|tag|xpath) \"([^\"]*)\"$"

Documentation:

Allows to specify a graphical element from the GUI which is used toindicate a loading mechanism (like an icon, a progressbar, or something),this can be used later on for checking if some processes are properlyloaded

###define The Element Identifying The Notification

Syntax: Given: "^the notification is identified by the element having (id|name|class|css|link|tag|xpath) \"([^\"]*)\"$"

Documentation:

Allows to specify a graphical element from the GUI which is used todisplay notifications (like a popup or something). This can be used lateron in order to check for particular notifications

###wait Till The Notification Is Hidden

Syntax: Given: "^enable the waiting for notification to be hidden$"

Documentation:

Defines if you want to wait for notifications to be hidden beforecontinuing the tests or if you can proceed with the tests even if thenotification popup is still visible

Clone this wiki locally