Man illustrationFlower illustration
How to Guides

Using “Functions” Activity

Estimated reading: 3 minutes 313 views

The “Functions” Activity under the “Applications” component can refresh the page in the previously opened “Open” Activity check whether a field exists on the page or find the number of rows in a table on the page.

Case Examples

With the “Functions” activity, it is possible to access the information on how many different currencies the daily exchange rates are given on the “TCMB” page.

*Application nameTCMBCurrencies*URLhttps://www.tcmb.gov.tr/kurlar/today.xml
*TypeChromeMaximize
Note: * Fields selected with are required, others are optional.

*Application name${TCMBCurrencies}*Field
//*[@id=”kurlarContainer”]/table[1]/tbody/tr[position()>1]
Result Variable Namecount*Actionelementcount
Note: * Fields selected with are required, others are optional.

Check “How to Find “Xpath”” to understand the “Field”.


Note

In this example, since the header is also considered a row, it is necessary to skip the first row in the Xpath. Therefore, Xpath should be written as:
//*[@id="kurlarContainer"]/table[1]/tbody/tr[position()>1]


The “Functions” activity can be used in cases where the page opened anywhere in the process needs to be refreshed and reloaded.

The “Functions” activity, it can be used in cases where it is necessary to check whether a field exists on a page.

  • For example, it can control an error message on a page in the process.

In this example, an incomplete entry will be made to check whether the error has appeared. In other processes, these fields can be filled in completely and a control stage can be created with the “Gateway” structure and progress can be made according to this control.

*Application nameFunctionsExist*URLhttps://uyg.sgk.gov.tr/vizite/welcome.do
*TypeChromeMaximize
Note: * Fields selected with are required, others are optional.
*Application name${FunctionsExist}*Field
//input[@name=”kullaniciAdi”]
*TextRobustaAcademy*Typetext
Note: * Fields selected with are required, others are optional.
*Application name${FunctionsExist}*Field
//input[@name=”kaydet”]
Wait until loadWait until visible
Note: * Fields selected with are required, others are optional.
*Application name${FunctionsExist}*Field
/html/body/table[2]/tbody/tr/td/table[1]/tbody/tr/td[2]
Result Variable Namecontrol*Actionexists
Note: * Fields selected with are required, others are optional.
Flow condition${control==true}
Default Flow
Note: * Fields selected with are required, others are optional.
Flow condition
Default Flow
Note: * Fields selected with are required, others are optional.
Share this Doc

Using “Functions” Activity

Or copy link

CONTENTS
Chat Icon Close Icon