Skip to main content

Validating Elements, Text or Images

Cycle includes Steps for validating that elements, text, and images exist on a web page. Here are some of the Steps available:

And I see "<TEXT>" in title in web browser

And I see element "<ELEMENT_ID>" which is located <ABOVE|BELOW|LEFT OF|RIGHT OF> element "<ELEMENT_ID>" in web browser

And I see "<TEXT>" matches all text in element "<ELEMENT_ID>" in web browser

And I do not see "<TEXT>" in web browser within <NUMBER> seconds

And I see image "Image:<IMAGE_FILE_PATH>" in web browser with correlation <NUMBER>

The full list of web Steps is available in the Step Guide, which can be accessed via the Cycle application, or in the User Portal.

Copying text

Steps for copying text on a web page to a variable are also included in Cycle. Some of these Steps available include:

Given I copy current URL in web browser to variable "<VARIABLE_NAME>"

And I copy text inside element "<ELEMENT_ID>" in web browser to variable "<VARIABLE_NAME>" within <NUMBER> seconds

And I copy text inside element "<ELEMENT_ID>" from character <NUMBER> through <NUMBER> in web browser to variable "<VARIABLE_NAME>"