Skip to content

Commit

Permalink
ENH: Activate the tab before closing the browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
livia-macon committed May 5, 2023
1 parent 4e57088 commit 0c3cd84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions botcity/web/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,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
Expand Down

0 comments on commit 0c3cd84

Please sign in to comment.