Hi,
I have a problem when i try to login to an URL. The URL requires login credentials and able to provide user id and password to login. This automatically downloads the file from the URL.
When i run next time due to the existing session it is not showing up the login & password screen and fails due to screen/activity not found exception. How to overcome this problem?
If you created the flow in the flowchart it will be effective
You can try like this
Element exist and indicate on some menu which is constant in the dashboard and save them in a variable “AlreadyLoggedIn” and set timeout as 2000 in the properties
Flow Decision and give condition like AlreadyLoggedIn
True-> Continue the task steps or logout steps and join the true line to element exists.
False-> Login steps and continue your task
So how it will work:
First it will check whether the menu item Is available in the opened browser
Use a kill process activity and kill that browser by mentioning the process name property as “Chrome” or “IExplore”
Then use the below sequence of activities to remove the browser cache and then try entering the credentials
so that you will be again asked with the password every time
For that
If you are using chrome
Use open browser activity to open chrome browser.
pass url as “ chrome://settings/clearBrowserData ”
3.It will show pop up to clear cache and just click on that