mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
d6402c26c8
commit
ee3038c74d
@ -19,6 +19,7 @@ from .._configs.chromium_options import ChromiumOptions
|
|||||||
from .._configs.session_options import SessionOptions
|
from .._configs.session_options import SessionOptions
|
||||||
from .._elements.chromium_element import ChromiumElement
|
from .._elements.chromium_element import ChromiumElement
|
||||||
from .._elements.session_element import SessionElement
|
from .._elements.session_element import SessionElement
|
||||||
|
from .._functions.cookies import CookiesList
|
||||||
from .._functions.elements import SessionElementsList, ChromiumElementsList
|
from .._functions.elements import SessionElementsList, ChromiumElementsList
|
||||||
from .._units.setter import WebPageSetter
|
from .._units.setter import WebPageSetter
|
||||||
from .._units.waiter import WebPageWaiter
|
from .._units.waiter import WebPageWaiter
|
||||||
@ -285,7 +286,7 @@ class WebPage(SessionPage, ChromiumPage, BasePage):
|
|||||||
|
|
||||||
def cookies(self,
|
def cookies(self,
|
||||||
all_domains: bool = False,
|
all_domains: bool = False,
|
||||||
all_info: bool = False) -> Union[dict, list]:
|
all_info: bool = False) -> CookiesList:
|
||||||
"""返回cookies
|
"""返回cookies
|
||||||
:param all_domains: 是否返回所有域的cookies
|
:param all_domains: 是否返回所有域的cookies
|
||||||
:param all_info: 是否返回所有信息,False则只返回name、value、domain
|
:param all_info: 是否返回所有信息,False则只返回name、value、domain
|
||||||
|
Loading…
x
Reference in New Issue
Block a user