Check if I can put text or not

Hello everyone !

I am creating an automation where I get variables from an excel file and then put them on a website that will after generate a PDF with the info I provided.
Sometimes, the website will recognize the ID and put the informations like the adress & all, sometimes not and I have to put everything manually.

I wanted to have an “IF” activity so that when data is already found, I would go to the next page and when not, I would add the info on the website on the click-able text zone.

The problem is that I need a condition and an activity before like “check element” or something but I don’t know what to put.

thanks in advance !

@alose,

You can use Check App State activity to check if you reached to the next page or not.
How to use it?

  1. Drag & Drop Check App Sate activity.
  2. Manually go to next page you are expecting in case yuo don’t require to input data.
  3. Select the UiElement which will be there on next page.
  4. Add your logic to Target does not appear section of Check App State.

Sample:

Thanks,
Ashok :slight_smile:

@ashokkarale ,

I tried using the Check App State activity as you said, but it seems to choose “Target does not appear” (maybe because it does not open a new window or just the entire data needed is not completed) even when the website recognises the ID and put some data.
Even if the text appears in some cases, the activity still chose “Target does not appear”

I may not have mentioned, but even when it recognizes the data, it still misses some new I must add in both cases.

Anyways I can’t go to the next page if data is not complete.

Do you have any ideas ? Still thanks

That’s not possible. Try to select the right and unique UiElement from your next screen.

Thanks,
Ashok :slight_smile:

@ashokkarale ,

I redefined the screen and element to take into account. After many tries, it worked by changing selectors and all.

I didn’t know about this activity, quite useful !

Thanks for your help, problem solved !

@alose,

Glad I’m able to help. Kindly mark my answer as solution so it will be helpful to other community members as well.

Thanks,
Ashok :slight_smile:

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