Catchpoint supports two custom actions in addition to what Selenium provides. These actions do not require () brackets, and they can be used in place of the pause verb.
-
waitForNoRequest(waitTime) This action tells the agent to wait for no HTTP requests on the wire/network for the specified
waitTimebefore continuing to the next action. ThewaitTimecan be between 1 and 5,000ms.
Example:waitForNoRequest("2000") -
waitForURL(URL) This action tells the agent to wait for response to a request matching the specified URL. It supports Regular Expressions to match the URL.
Example:waitForURL(www\.example\.com/*) -
waitForElementPresent(locator, timeValue)
This action tells the agent to wait for the specfied element to be present. The second parameter,timeValue, is optionalans specifies the wait time in milliseconds. If it is not specified, the value used is 20,000ms. The maximum value it supports is 30,000ms.
Example:waitForElementPresent(//*[@id='sample'], 2000)