diff --git a/DrissionPage/_base/browser.py b/DrissionPage/_base/browser.py index e0ef55a..beb6416 100644 --- a/DrissionPage/_base/browser.py +++ b/DrissionPage/_base/browser.py @@ -149,3 +149,5 @@ class Browser(object): if f' {self.process_id} ' not in p.read(): break sleep(.2) + + Browser.BROWSERS.pop(self.id) diff --git a/DrissionPage/_elements/chromium_element.py b/DrissionPage/_elements/chromium_element.py index e8cb50e..bb318a9 100644 --- a/DrissionPage/_elements/chromium_element.py +++ b/DrissionPage/_elements/chromium_element.py @@ -25,7 +25,7 @@ class ChromiumElement(DrissionElement): def __init__(self, page, node_id=None, obj_id=None, backend_id=None): """node_id、obj_id和backend_id必须至少传入一个 - :param page: 元素所在ChromePage页面对象 + :param page: 元素所在页面对象 :param node_id: cdp中的node id :param obj_id: js中的object id :param backend_id: backend id