Skip to content

Commit

Permalink
Merge pull request #89 from botcity-dev/ENH/Improving-stop-browser-me…
Browse files Browse the repository at this point in the history
…thod

ENH: Activate the tab before closing the browser.
  • Loading branch information
hhslepicka committed May 8, 2023
2 parents e44d9dd + eb2f31d commit 4074f66
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 @@ -326,6 +326,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 4074f66

Please sign in to comment.