diff --git a/botcity/web/bot.py b/botcity/web/bot.py index b4f8e18..fa4b950 100644 --- a/botcity/web/bot.py +++ b/botcity/web/bot.py @@ -273,6 +273,8 @@ def stop_browser(self): """ if not self._driver: return + if self.get_tabs(): + self.activate_tab(self.get_tabs()[-1]) self._driver.close() self._driver.quit() self.options = None