Selenium Commands Supported in DynamicDS

DynamicDS and DynamicMP

Veracode DynamicDS supports several Selenium IDE commands, which you can create in Selenium or Kantu, when scanning in advanced mode. The following table lists the Selenium commands Veracode supports in your sequence scripts.

Command Notes
open If you must manage multiple windows, Veracode recommends explicitly selecting them by name or title before attempting to execute any commands. If more than one window is still open after the originally selected window is closed, selection of the new main window is unpredictable.
close
refresh  
click click and clickAndWait have identical implementations and functionality.
clickAndWait
doubleClick doubleClick and doubleClickAndWait have identical implementations and functionality.
doubleClickAndWait
mouseDown mouseDown and mouseUp are always fired together when the simulated mouse's left button clicks on an element.
mouseUp
mouseOver mouseOver and mouseMove are always fired together when the simulated mouse moves on an element.
mouseMove
mouseOut  
fireEvent The focus command fails if the element to be focused is not focusable, such as an <img> or <br> element. Elements that are not focusable may have focus events bound to them. In this case, you can use the fireEvent command to force an event that you want to fire to focus on elements that are not focusable.
focus
pause There is no need for long, duplicated pause commands.
submit  
select  
selectAndWait This command fails if the targeted dropdown menu does not load within the timeout period, which is 60 seconds by default.
runScript  
selectFrame  
waitForFrameToLoad Support for this command only includes the name and ID string locators.

When this command returns successfully, it automatically switches to the loaded frame, as if the selectFrame command was called. In place of this command, a generic pause is often a better solution.

waitForPageToLoad You can provide an optional timeout period in the target element of the command. The default value is 30 seconds. The maximum value is 60 seconds. If the page does not load within the configured timeout period, the command fails.
selectPopUp When there is only one window currently open, this command fails because the only open window must be the main window.
selectWindow If there is only one window currently open, this command always succeeds.
typeKeys typeKeysand sendKeys have identical implementations.
sendKeys
type  
keyPress keyPress, keyDown, and keyUp have identical implementations. All of these events are always fired when a key is pressed on the simulated keyboard while an element is in focus.
keyDown
keyUp
verifyHtmlSource Veracode checks the provided text against the HTML source of the currently rendered page, not the original source. Therefore, HTML elements added to the page through JavaScript can be matched with this command only if the JavaScript code mutating the DOM finishes executing before this command is executed. This command requires the scan engine to fully serialize the page currently loaded in the browser. This process can be extremely time-consuming for complex pages.
assertText assertText and verifyText have identical implementations.
verifyText
assertAlert These commands have identical implementations. They switch focus to the current alert box on the page and determine if the user-provided text matches the alert text. If it does not match or there is no alert box on the page, these commands fail.
assertPrompt
assertConfirmation
assertChecked This command succeeds when the targeted checkbox or radio button is selected and fails when it is not selected.
assertTextPresent Veracode checks the provided text against the HTML source of the currently rendered page, not the original source. Therefore, HTML elements added to the page through JavaScript can be matched with this command only if the JavaScript code mutating the DOM finishes executing before this command is executed. This command requires the scan engine to fully serialize the page currently loaded in the browser. It can be extremely time-consuming for complex pages.
verifyTextPresent
assertElementPresent This command always uses the timeout period of 30 seconds. If the targeted element cannot be located within that amount of time, the command times out and fails.
waitForElementToLoad You can provide an optional timeout value in the value element of these Selenium IDE commands. If there is no value present, the default timeout is 30 seconds. If the element cannot be located within that amount of time, the command times out and fails.
waitForTitle
waitForTextPresent
waitForElementPresent
check check can operate on checkbox and radio button types of form inputs, but uncheck can only operate on checkboxes.
uncheck
deleteAllCookies