Create alternative Click activities

I would like to create the opening of a webpage as a browser activity.

Sometimes the login area opens, you just have to click on Login.

Sometimes the website opens directly because the user was already logged in.

This means that the robot has to check whether it still has to log in or can continue with the automation directly.

How do I implement this?

Use Incognito and then you don’t need to worry, you always then do the login flow and never concern yourself with being logged in with the wrong user.

@Markus_Reimer

Welcome to the community

Use check app state activity and check for login button if found…login else its already logged in

cheers

Hi @Markus_Reimer

Use Check app state activity and indicate the login page… If it is found continue the process else login the page.

Hi @Markus_Reimer

Simply, use the check app state activity and indicate the login button.

This works like it checks the login button appears in the webpage or not. If appears it goes to target appears block inside target appears block insert a click activity and indicate the login button. If login button not appears it goes to Target doesn’t appear block and leave the target doesn’t appear block empty.

Check the below image for better understanding,

Hope it helps!!

Hi

you can add check app state activity, If login button exist or not then based on it you can add click action target appears and target doesn’t appear.

Thanks, I got it - now it works! :slight_smile:

I have a second question, maybe not so easy.

The robot should make an evaluation for the month on the day of execution.
To do this, the date must be entered in one field “From” 01/01/2024 and then in the second field “To” 31/01/2024".

If the automation runs in February, it should of course enter 01/02/2024 and 29/02/2024.

What is the best way to configure this?

1 Like

To get the first date of present month

- Assign -> FirstDate = New DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("dd/MM/yyyy")

To get the Last date of present month

- Assign -> LastDate = New DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month)).ToString("dd/MM/yyyy")

Happy Automation!! @Markus_Reimer

1 Like

Oh that works, thank you!

What is the input if I want to query the last month, i.e. currently e.g. 01.12.2023 to 31.12.2023?

ist must be sometink with addMonth(-1) or?

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