Checks if a control exists. If the control is found, the verify point is considered: Passed; otherwise the test is: Failed.
located by CSS|XPath|ILocator.
Checks if a control does not exist. If the specified control is not found, the verify point is considered: Passed; otherwise the test result is: Failed.
located by CSS|XPath|ILocator.
Checks if the first element with given locator has an attribute whose value matches the provided one. The verify point is considered: Passed if the values match; otherwise the test result is: Failed.
located by CSS|XPath|ILocator.
Element's attribute to be retrieved.
Expected value of the attribute.
Tests for deep equality between the actual and expected parameters. If objects are strictly equal, the verify point is considered: Passed; otherwise the test result is: Failed.
actual value
expected value
(optional) message will throw if the values are not strictly equal
Checks a JSON value using its JSON path. If they satisfy deep, strict equality, the verify point is considered: Passed; otherwise the test result is: Failed.
Tests for deep strict inequality. If objects are not strictly equal, the verify point is considered: Passed; otherwise the test result is: Failed.
actual value
expected value
(optional) message will throw if the values are strictly equal
Checks if text from the located element matches a given value. The verify point is considered: Passed if the values match; otherwise the test result is: Failed.
located by CSS|XPath|ILocator.
Returns a Boolean value to indicate whether or not the specified control is found.
Returns a Boolean value of true
if the control is found. Otherwise it returns false
.
located by CSS|XPath|ILocator.
Fills a text field or <textarea> with the given string. If there is already text, it will be cleared first.
located by CSS|XPath|ILocator.
Retrieves a value from the located element and returns a string.
located by CSS|XPath|ILocator. In case mobile, only works iOS
Gets the current desired capabilities.
Retrieves a attribute from the first element with a specified locator.
located by CSS|XPath|ILocator.
property name.
Returns the number of visible elements in the control found with the supplied locator.
located by CSS|XPath|ILocator
Gets a JSON value using its JSON path.
array[] of found items or empty array if jsonPath does not exist
Gets the selected items in list box or combo box defined by the HTML <select> tag.
located by CSS|XPath|ILocator
text values of selected items.
Retrieves text from the specified element.
located by CSS|XPath|ILocator.
Creates a report using using the the reporter set in gondola.json.
user-defined text or a caption of the image to put in the report.
(optional) path to the image to put in the report.
Saves a screenshot of the current browsing context to a PNG file and put into the output folder (set in gondola.json). Be aware that, if we set the 'fullPage' value to 'true', some browser drivers take screenshots of the whole document (e.g. Geckodriver-Firefox and Safaridriver) and others only of the current viewport (e.g. Chromedriver).
file name to save.
(optional) flag to enable fullscreen screenshot mode. Default value is false.
Selects items in a list box or a combo box that are defined by the HTML <select> tag.
located by CSS|XPath|ILocator.
text value of items will be selected.
Callback the [callback] when an error happens.
function to be executed upon the occurrence of an error.
Sets the state for the specified checkbox/radio button.
located by CSS|XPath|ILocator.
state to which to set the checkbox/radio button. Allowable values:
Pauses execution for a number of seconds.
time in seconds to wait.
Waits for an element to be removed from the DOM tree of a page (the default amount is 1 second).
element located by CSS|XPath|strict locator.
(optional) time in seconds to wait, 1 by default.
Waits for an element to be present on the page (the default amount is 1 second).
located by CSS|XPath|ILocator.
(optional) time in seconds to wait
Set of common actions supported by gondola