Create Persistent Chrome Browser In Selenium -- 2

Job ID: 35588713

Budget: $250 – $750 USD

MILESTONE #1 ($300)
Python class with two public methods:
(1) get_new_webbrowser() returns a Selenium 4 Chrome webdriver that can survive the end of the program's execution, including those caused by errors.
(2) get_previous_webbrowser(). Upon a new execution of the code, this method will search for the webdriver surviving from the previous execution, 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.
(3) This milestone payable upon successful execution on the client's laptop. AnyDesk can be made available to help with setup.

MILESTONE #2 ($100)
Additional payment for delivery within 24 hours.

NOTES
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