Skip to main content

SIDE file commands

The following custom commands can be configured to generate additional modules (all custom commands must begin with "//"):

//phase_start:<phase_name>

Indicates the start of a phase, which will last until another "//phase_start" command is found or until the test ends. This will generate a module with the status of the phase and another module with the time it took to complete. For example:

 

//phase_start:Login process

//getValue;<module_name>;<module_type>;<regexp>

Generates a module with content from the web page which can be obtained through a regular expression from its source code. For example:

 

//getValue;Temperature;generic_data;<span class="temperature">(\d+\.*\,*\d*).*</span>

 

You would get the temperature of a web page with this line in its source code:

 

<p> The temperature of the solar panel is: <span class="temperature">54ยบ C</span></p>

//getVariable;<module_name>;<module_type>;<variable>

Generate a module with the content of a variable stored in the SIDE with "store" commands. For example:

 

//getVariable;List count;generic_data;listCount

//getScreenshot;<module_name>

Generates a module with a screenshot of the current browser. For example:

 

//getScreenshot;URL home

The commands of the SIDE files enabled to be executed with the plugin are the following (see the Selenium IDE documentation to know how to use them):

addSelection
answerOnNextPrompt
assert
assertAlert
assertChecked
assertConfirmation
assertEditable
assertElementPresent
assertElementNotPresent
assertNotChecked
assertNotEditable
assertNotSelectedValue
assertNotText
assertPrompt
assertSelectedValue
assertSelectedLabel
assertText
assertTitle
assertValue
check
chooseCancelOnNextConfirmation
chooseCancelOnNextPrompt
chooseOkOnNextConfirmation
click
clickAt
close
do
doubleClick
doubleClickAt
dragAndDropToObject
editContent
else
elseIf
executeScript
executeAsyncScript
forEach
if
mouseDown
mouseDownAt
mouseMoveAt
mouseOut
mouseOver
mouseUp
mouseUpAt
open
pause
removeSelection
run
runScript
select
selectFrame
selectWindow
sendKeys
setSpeed
setWindowSize
store
storeAttribute
storeJson
storeText
storeTitle
storeValue
storeWindowHandle
storeXpathCount
submit
times
type
uncheck
verify
verifyChecked
verifyEditable
verifyElementPresent
verifyElementNotPresent
verifyNotChecked
verifyNotEditable
verifyNotSelectedValue
verifyNotText
verifySelectedLabel
verifySelectedValue
verifyText
verifyTitle
verifyValue
waitForElementEditable
waitForElementNotEditable
waitForElementNotPresent
waitForElementNotVisible
waitForElementPresent
waitForElementVisible
waitForText
webdriverAnswerOnVisiblePrompt
webdriverChooseCancelOnVisibleConfirmation
webdriverChooseCancelOnVisiblePrompt
webdriverChooseOkOnVisibleConfirmation
while