As of now I see that only 1 browser is opened in job and I am not able to find a way to close browser and open new browser session.
I have scenario where I need to login to one of the url with a user, perform some actions and logout.
Again login to another url with different user credentials, perform some actions and logout.
Due below issues I am not able to achieve successful execution of scripts
- For one of the url, logout is not working. Because of this my next test with different url does not work
- Due to bug in the UI, at somepoint it is in different page and logout link is not visible. Because of this my next test with different url does not work
In the beginning of each and every test I can check if logout is still visible and then logout and proceed. However if logout is not working this solution does not help. Also if user had logged out in previous test, this check would impact the execution time as we have may tests.
Is there a way to open and close browser for each test in a job.