initial update chrome.py

This commit is contained in:
Barbara Miller 2022-10-05 11:48:26 -07:00
parent a97bd3826a
commit cde49e2a10

View file

@ -74,11 +74,16 @@ class Chrome:
ignore_cert_errors: configure chrome to accept all certs (default ignore_cert_errors: configure chrome to accept all certs (default
False) False)
''' '''
self.port = port if chrome_exe == 'browserless':
self.chrome_exe = chrome_exe # init browserless here maybe
self.ignore_cert_errors = ignore_cert_errors pass
self._shutdown = threading.Event() else:
self.chrome_process = None # use a local browser
self.port = port
self.chrome_exe = chrome_exe
self.ignore_cert_errors = ignore_cert_errors
self._shutdown = threading.Event()
self.chrome_process = None
def __enter__(self): def __enter__(self):
''' '''