Man illustrationFlower illustration

Functions

Estimated reading: 2 minutes 254 views

Functions activity finds the occurrence number of a desired element on the browser or windows application (This element can be an image, a button or a text), checking whether the item whose location is given exists on the current screen. Also, it allows the refresh of the page (Refresh) within a certain field or entire page on the browser or windows application.


*Application nameThe reference name of applications which has already been opened or attached is chosen in the dropdown application which will be opened.
*FieldThe location (Xpath) of the area where the action is desired is entered.
*Result variable nameThe variable name which stores the data obtained by the Functions activity is written.
*ActionThe desired action is chosen in the dropdown.
Retry CountThe number of attempts until the operation occurs is written.

Note: It can be any numeric value. Default value is 1.
Note: * Fields selected with are required, others are optional.

You can use the Applications name as shown in the example.

${robustaWebpage}

You can use the Field as shown in the example.

(//input[@title=”Arama”])[1]

You can use the Result variable name as shown in the examples.

countResult

existResult

You can use the Action as shown in the examples.

It returns the number of elements of the given content. It is possible to have more than one element with the same XPath on the page. For example, it can be used in cases where the number of rows in the table is found:

Element Count

It is used for refreshing a certain area or the entire page:

Refresh

It checks whether the element whose location (Xpath) information is given exists on the current screen and according to the result, the result is true if there is an element, otherwise, it is false It is used for refreshing a certain area or the entire page:

Exist

You can use the Retry Count as shown in the examples.

7

Exists operation returns true or false only.

The result of the Element Count operation is returned only as a digit (in string format). (Eg: Such as 5, 3)

Share this Doc

Functions

Or copy link

CONTENTS
Chat Icon Close Icon