Man illustrationFlower illustration

Docy

Functions

Estimated reading: 2 minutes 71 views

Funtions activity finds the occurence 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 or entire page on the browser or windows application.


*Application nameReference name of application which will be opened.
*FieldIt is the field where the location (Xpath) of the area to be clicked on the application.
Result variable nameThe variable name which stores the data received from the application.
*ActionWhatever action is required to be done in the browser or application.
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

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)

CONTENTS