This commit is contained in:
g1879 2023-02-01 00:08:05 +08:00
parent 5c20c0989d
commit a4f4f32760
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class ChromiumPage(ChromiumBase):
# 接收浏览器地址和端口 # 接收浏览器地址和端口
elif isinstance(addr_driver_opts, str): elif isinstance(addr_driver_opts, str):
self.address = addr_driver_opts self.address = addr_driver_opts
self._driver_options = ChromiumOptions(read_file=False) self._driver_options = ChromiumOptions()
self._driver_options.debugger_address = addr_driver_opts self._driver_options.debugger_address = addr_driver_opts
self.process = connect_browser(self._driver_options)[1] self.process = connect_browser(self._driver_options)[1]
if not tab_id: if not tab_id:

View File

@ -58,7 +58,7 @@ class ChromiumOptions(object):
return return
self.ini_path = None self.ini_path = None
self._binary_location = "" self._binary_location = "chrome"
self._arguments = [] self._arguments = []
self._download_path = None self._download_path = None
self._extensions = [] self._extensions = []