This commit is contained in:
g1879 2024-11-28 21:27:44 +08:00
parent d6402c26c8
commit ee3038c74d

View File

@ -19,6 +19,7 @@ from .._configs.chromium_options import ChromiumOptions
from .._configs.session_options import SessionOptions
from .._elements.chromium_element import ChromiumElement
from .._elements.session_element import SessionElement
from .._functions.cookies import CookiesList
from .._functions.elements import SessionElementsList, ChromiumElementsList
from .._units.setter import WebPageSetter
from .._units.waiter import WebPageWaiter
@ -285,7 +286,7 @@ class WebPage(SessionPage, ChromiumPage, BasePage):
def cookies(self,
all_domains: bool = False,
all_info: bool = False) -> Union[dict, list]:
all_info: bool = False) -> CookiesList:
"""返回cookies
:param all_domains: 是否返回所有域的cookies
:param all_info: 是否返回所有信息False则只返回namevaluedomain