Create Persistent Chrome Browser In Selenium

Job ID: 35570116

Budget: $250 – $750 USD

Python class with two public methods:
(1) get_new_webbrowser() returns a Selenium Chrome webbrowser that can survives the end of the program's execution, including those caused by errors.
(2) get_previous_webbrowser(search_criteria) will search for the previously created webbrowser, reconnect to it, and return that. Else, if the previous webbrowser no longer exists, then the methods will call get_new_webbrowser and return that.

Please find at the following link, my previous attempts to create something similar, and associated errors: https://stackoverflow.com/questions/74869011/reconnecting-to-preexisting-browser-in-selenium-causes-no-connection-could-be-m
Related categories: Python Google Chrome Selenium Webdriver