Python Forum
Selenium how to detect if browser is close?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selenium how to detect if browser is close?
#2
Found my own solution.

Just use try-catch method on WebDriverException and NoSuchWindowException
then create new instance of webdriver.
Reply


Messages In This Thread
RE: Selenium how to detect if browser is close? - by gahhon - Feb-26-2019, 01:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  webdriver.remote to connect back existing browser without open new browser? gahhon 6 6,792 Feb-26-2019, 03:53 PM
Last Post: gahhon
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,649 Nov-03-2017, 08:41 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020