I am new to UiPath Test Automation. If I am trying to execute same test more than one time, browser is saving the cache and when I reexecute again the session contains old cookies even I check ‘NewSession to True’.
Can any one help me how to create new session for each execution
@THIRU_NANI
But when you take Selenium or other automation tools, when we execute more than one test cases it will create separate sessions for each test case.
Lets execute my test case name Test_A(Work flow: Login, Home page validation, user validation)
Lets execute my second test case Test_B(Workflow: Login, Registration page validation)
When I run second test cases in UiPath will lunch the browser with old session (by default application loging in). this should not be the case. when you execute next test case or next run browser should lunch with new session.
@Palaniyappan Actually it’s an good idea. but in this case he’s log in to the application. The close Browser\Application will close the browser but when it comes to the website the login will stays.
Yes, I am closing the browser by using CloseTab activity at the end of the test case. Even I close the browser, application is loading with logged the user.
We can add logout, but my worry is when we start next round of execution or next test case manually why the previous session is loading.
I am closing the browser after test case workflow done.
RemoteException wrapping UiPath.Core.SelectorNotFoundException: Could not find the UI element corresponding to this selector:
at UiPath.Core.Activities.ObsoleteTaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Thanks for the info. I have changed the properties as per above screenshot. It’s working in Private mode.
Apparently ,normal browser should launch a new session every time right?