UI Element - Different Action

Hi All,

I am a developer to RPA and would like to ask the advise from the master here

my condition as follows :-

  1. if i can see the “Save Final Quotation” then robot need to click on it. Refer second screen.

  2. otherwise, it need to :-1:
    i) capture the message like Sum Insured and Vehicle Type
    ii) Click on Submit

Need advise.

Thank you.

Hi @jiechiat83_Low

Welcome to forum

Try this way

  1. Use element exist to check whether Save Final Quotation button exists or not and store the output of element exist in Boolean variable let’s say button_exist
  2. Then use if condition with condition as button_exist

If the condition is true then in then section ,
Use click activity to click on Save Final Quotation button

If condition is false then in else section,
use get text activity to capture sum insured and vehicle type and then use click activitiy to click on submit button

Hope it helps you

Mark it as solution if you got it

Regards

Nived N :robot:

Happy Automation :slight_smile:

Hi @jiechiat83_Low,
You can simply use an Element Exist and an If statement to have 2 differente fluxes if the element exist or not

1 Like

Hi Nived,

i got the entire string is get text :-1:
Refer message:Preview Quotation

This quotation will be referred due to the following underwriting guidelines.
Please click on Submit to get administrator’s approval.

- Sum Insured
- Vehicle Type

Remarks to Insurer:

Submit Back

NCD percentage has been reset to 0%, due to reason code: 077
Please return to previous screen to make the appropriate changes.

=============

however , i only want to get the message after “approval” and before “remarks to insurer”.

the end result only :
- Sum Insured
- Vehicle Type

thank you

Hi Nived,

Element exist solved my issue. But i need your advise on it.
this is the get text i got it from log file :-1:

"Refer message:Preview Quotation \r\n\r\nThis quotation will be referred due to the following underwriting guidelines. \r\nPlease click on Submit to get administrator’s approval.\r\n\r\n\r\n- Sum Insured\r\n- Vehicle Type\r\n\r\n\r\nRemarks to Insurer: \r\n\r\nSubmit Back \r\n\r\n\r\nNCD percentage has been reset to 0%, due to reason code: 077 \r\nPlease return to previous screen to make the appropriate changes.\r\n\r\n

=============

the expected result is “- Sum Insured\r\n- Vehicle Type”. thank you in advance.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.