How to check we are login into the expected URL

I have to login into the ACME System1 page login, i have to check whether I am login into the correct page if I am on the correct page the i will write code for login into that system otherwise i have to throw business exception .How i can do this can anyboday help me with this?

After entering the credentials and click on the submit button, use the element exists activity of the dashboard page and check if that exists or not based on that you can throw the exception.

1 Like

HI @Sandhya_Gajare

Use Element Exist activity and check whether your are in the correct page.

If not, Use Throw activity → New BusinessRuleException("Login issue")

Regards
Gokul

how i can check before login whether i am on right page or not

Hi @Sandhya_Gajare

You can try with Send Hotkey activity → pageup

Check out the XAML file

ElementExist.xaml (13.0 KB)

Regards
Gokul

1 Like

Hi @Sandhya_Gajare, you can have Element Exists activity before login and this way you can check whether you are on right page or not

1 Like

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