Browser automatically closes after executing scripts

Hello,

This is my first post. I’ve noticed that after a script is run on a browser it has the etiquette to close it but however I want to see everything that happened (or didn’t), so how do I stop this default behavior?

Thanks

Hi @brian_joseph you cannot change this behavior.

If you want to observe what the bot did in the browser, you can add a Wait action at the end of the recording, so the browser is left open. However, the limit to browser inactivity is 5 minutes, so you might need to have several Wait actions.

And at the end of the recording, the browser will still be closed (it is the correct behavior - the bot has bring the system to the state it was in at the beginning of the execution).

Or, you can open the browser not via Open Website, but using keystrokes or mouse clicks, but in this case you will not be able to use web actions and xpaths inside it.

Thank you!

1 Like