I wrote a macro on VBA using Selenium.ChromeDriver, which opens the site and gives it various actions. But the problem is that if an error occurs in the macro and I click "Stop" in debugging mode, then the browser closes. The problem is that when you close the browser and open it, you have to enter your login and password each time. How can I avoid closing the browser opened via Chrome Driver if the macro ends or when an error occurs? Did so
Public Driver as new ChromeDriver
but that doesn't help, the browser closes.