How make bot realise to do full text of next screen

Can anyone help with “if” activity

The condition is

  1. Get full text
  2. Click on next

If there is a pop up asking to click on OK then click on OK but if there is no popup then do get full text again and click on next.

I am able to do 1 and 2 but don’t know how write the condition for IF i.e if popup exist then click OK else do get full text.

Hi @dipon1112000

You can avoid that using a click activity but checking the continueOnError property, it will click if the popup appears, else continue with the next activities

Regards

1 Like

Hi @dipon1112000

Use Check app state activity and indicate the popup, in the element appears block insert click activity and indicate on OK in popup. In Element doesn’t appear block insert get text activity to extract the data and take click activity and indicate on next.

The above will work like check app state checks the popup exist or not, if exist it executes the activities in the Element appear block, If the popup doesn’t exist, it will execute the activities in the element doesn’t appear block.

Check the below image for better understanding,

Hope it helps!!

Thank you for your reply but get full text activity is dynamic in nature.

i.e
The flow is
A. I get in to an application with an account no
B. Then do get full text to get all the details in the present screen
C. Click on next (to go to next screen)
D. If the next screen is empty then a popup will come to Click on OK to exit the screen

If next screen is not empty then do get full text again.

The above activity is dynamic in nature as the number of next screens depends on account number (some may have more or less)

So I am using For Each and then Type into to pass the account number.

The challenge I have is that I cannot declare a specific element under indicate element as each account will have different elements.

So I am trying to find a way to iterate get full text if OK does not exist

Okay @dipon1112000

Then follow the below process -
→ Use the Use application\browser activity to indicate the application.
→ Inside use application\browser activity insert the for each to iterate the account numbers.
→ Inside for each insert type into activity to type the each account number.
→ After type into activity, use element exist activity and indicate the element on the home page which is static. Output of Element exist activity is Boolean datatype variable, let’s call it as Bool_Flag.
→ After Element exist insert If condition to check the Bool_Flag = False.
→ In then block insert the check app state activity to check the popup.
→ In Target appears block insert the click activity and indicate on OK Button.
→ In Target doesn’t appear block insert the Get Full Text activity to scrap the text.

We have done it dynamically by using element exist activity if the element exist means the homepage arrived in that time it will enter the next account number.

Hope it helps!!

Thank you for helping but I do not have check app state as I am not using modern design experience.

Is there any other way?

1 Like

@dipon1112000

Sequence
Get Full Text
Click on Next
Element Exists (Output: isPopupVisible)
If (Condition: isPopupVisible)
Click on OK
Else
Get Full Text
Click on Next

Instead of using check app state use the Element exist activity both are working as same.
Create a variable at output of Element exist activity called Bool_Condition.
Take an If condition to check the Bool_Condition.

- Condition -> Bool_Condition =True

→ In then block insert the activities if the element exist
→ In else block insert the activities if element doesn’t exist.

Hope you understand!!

Thank you I have tried but I am not able to figure out how to capture all the get full text activities (account wise) and write it to a note pad. I am able to iterate accounts but don’t know how to get the full text content in a notepad

@dipon1112000

Instead of using write text activity Use Append text activity

Is this working for you @dipon1112000

Or you want any modifications in it.

Thank you for replying

My case is bit complicated

  1. I have done element exist (home page) and passed the output variable in the Condition of IF activity.

But I am not sure how to proceed as the requirement is

  1. Do Get Full Text and capture the first screen (save the content in output variable)
  2. Click on dropdown (it will navigate to next screen)
  3. If the next screen has content then do get full text again and save the content into output variable.
  4. But if there is no content then there will be a popup to click on OK

First,
The problem in my flow is I am not able to get all the content of get full text (output variables) to a notepad as I don’t know how to pass them all to output datatable

Secondly

As you advised I have done 2 Element exist activities 1 at the home page and second for popup.
In the If condition I have passed Bool_Conditon and on Then block added Click activity to Click on OK.
In the Else block Get Full Text again ( to mitigate second screen having content)
But I am unable to make the bot realise that if the Else block comes to a point that there is no data (it can be after 2 screens or might be after 5 screens), it is suppose to divert to Then block so that OK can be clicked. I hope you understand