Different Login Condition

Hi All,

I want to know what are conditions we need to handle for a login page.

I meant to say the bot should handle the exceptions whether its successful login or entered the incorrect credentials or due to some system exceptions.

So please do needful what and all scenario as a developers needs to handle in order to make sure that login of a website is completed successfully.

thanks

1 Like

Hi @naveen.s

After Entering the credentials and click on login, if the credentials incorrect the popup or any message will appear saying Credentials are incorrect, we have to use that specific element to handle the exception.

→ Encapsulate the whole sequence with Try catch activity, After Typeinto and click activity for login, insert Check app state activity.
→ Indicate the Message which shows Credentials are incorrect for Check app state activity, In the Target appears block insert the throw activity to throw the business exception error that Input credentials are incorrect.
→ Insert other activities in Target doesn’t appear block, if login success to do for the further process.

We have to handle the situation for login by using check app state activity.

Hope it helps!!

1 Like

what if the website is already logged in and home page is opened after entering the login url??

Hi,

1:- browser page is launch or not
2:- Login page launch or not

For above scenarios, bot should retry 3 times & then throw system exception.

3:- Credentials are correct or not
4:- Home page launch or not
For 3rd & 4th bot should throw business exception.

Thanks

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