mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
5c20c0989d
commit
a4f4f32760
@ -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:
|
||||||
|
@ -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 = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user