Skip to content

Commit

Permalink
FIX: activate the tab before closing the browser
Browse files Browse the repository at this point in the history
  • Loading branch information
kayqueGovetri committed May 8, 2023
1 parent 3e860a6 commit b05f16e
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 @@ -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
Expand Down

0 comments on commit b05f16e

Please sign in to comment.