BrowserSteps - Cleanup interface on shutdown

pull/1178/head
dgtlmoon 2 years ago
parent 3838bff397
commit 64caeea491

@ -45,18 +45,18 @@ def cleanup_playwright_session():
global browsersteps_playwright_browser_interface_start_time global browsersteps_playwright_browser_interface_start_time
browsersteps_live_ui_o = {} browsersteps_live_ui_o = {}
browsersteps_playwright_browser_interface = None
browsersteps_playwright_browser_interface_browser = None browsersteps_playwright_browser_interface_browser = None
browsersteps_playwright_browser_interface_end_time = None browsersteps_playwright_browser_interface_end_time = None
browsersteps_playwright_browser_interface_start_time = None browsersteps_playwright_browser_interface_start_time = None
print("Cleaning up old playwright session because time was up, calling .goodbye()")
print("Cleaning up old playwright session because time was up, calling .goodbye()")
try: try:
browsersteps_playwright_browser_interface_context.goodbye() browsersteps_playwright_browser_interface_context.goodbye()
except Exception as e: except Exception as e:
print ("Got exception in shutdown, probably OK") print ("Got exception in shutdown, probably OK")
print (str(e)) print (str(e))
browsersteps_playwright_browser_interface = None
browsersteps_playwright_browser_interface_context = None browsersteps_playwright_browser_interface_context = None
print ("Cleaning up old playwright session because time was up - done") print ("Cleaning up old playwright session because time was up - done")

Loading…
Cancel
Save