SYMBOL INDEX (2576 symbols across 79 files) FILE: DrissionPage/_base/base.py class BaseParser (line 26) | class BaseParser(object): method __call__ (line 27) | def __call__(self, locator): method ele (line 30) | def ele(self, locator, index=1, timeout=None): method eles (line 33) | def eles(self, locator, timeout=None): method find (line 36) | def find(self, locators, any_one=True, first_ele=True, timeout=None): method html (line 51) | def html(self): method s_ele (line 54) | def s_ele(self, locator=None): method s_eles (line 57) | def s_eles(self, locator): method _ele (line 60) | def _ele(self, locator, timeout=None, index=1, raise_err=None, method=... method _find_elements (line 63) | def _find_elements(self, locator, timeout, index=1, relative=False, ra... class BaseElement (line 67) | class BaseElement(BaseParser): method __init__ (line 68) | def __init__(self, owner=None): method get_frame (line 72) | def get_frame(self, loc_or_ind, timeout=None): method _ele (line 78) | def _ele(self, locator, timeout=None, index=1, relative=False, raise_e... method timeout (line 94) | def timeout(self): method child_count (line 98) | def child_count(self): method tag (line 103) | def tag(self): method parent (line 106) | def parent(self, level_or_loc=1): method next (line 109) | def next(self, index=1): method nexts (line 112) | def nexts(self): class DrissionElement (line 116) | class DrissionElement(BaseElement): method link (line 119) | def link(self): method css_path (line 123) | def css_path(self): method xpath (line 127) | def xpath(self): method comments (line 131) | def comments(self): method texts (line 134) | def texts(self, text_node_only=False): method parent (line 139) | def parent(self, level_or_loc=1, index=1, timeout=None): method child (line 155) | def child(self, locator='', index=1, timeout=None, ele_only=True): method prev (line 171) | def prev(self, locator='', index=1, timeout=None, ele_only=True): method next (line 174) | def next(self, locator='', index=1, timeout=None, ele_only=True): method before (line 177) | def before(self, locator='', index=1, timeout=None, ele_only=True): method after (line 180) | def after(self, locator='', index=1, timeout=None, ele_only=True): method children (line 183) | def children(self, locator='', timeout=None, ele_only=True): method prevs (line 196) | def prevs(self, locator='', timeout=None, ele_only=True): method nexts (line 199) | def nexts(self, locator='', timeout=None, ele_only=True): method befores (line 202) | def befores(self, locator='', timeout=None, ele_only=True): method afters (line 206) | def afters(self, locator='', timeout=None, ele_only=True): method _get_relative (line 210) | def _get_relative(self, func, direction, brother, locator='', index=1,... method _get_relatives (line 218) | def _get_relatives(self, index=None, locator='', direction='following'... method attrs (line 241) | def attrs(self): method text (line 245) | def text(self): method raw_text (line 249) | def raw_text(self): method attr (line 253) | def attr(self, name): method _get_ele_path (line 256) | def _get_ele_path(self, xpath=True): method _find_elements (line 259) | def _find_elements(self, locator, timeout, index=1, relative=False, ra... class BasePage (line 263) | class BasePage(BaseParser): method __init__ (line 265) | def __init__(self): method title (line 280) | def title(self): method url_available (line 285) | def url_available(self): method download_path (line 289) | def download_path(self): method download (line 293) | def download(self): method _before_connect (line 300) | def _before_connect(self, url, retry, interval): method _set_session_options (line 313) | def _set_session_options(self, session_or_options=None): method _create_session (line 326) | def _create_session(self): method url (line 333) | def url(self): method json (line 337) | def json(self): method user_agent (line 341) | def user_agent(self): method get (line 345) | def get(self, url, show_errmsg=False, retry=None, interval=None): method _ele (line 348) | def _ele(self, locator, timeout=None, index=1, raise_err=None, method=... FILE: DrissionPage/_base/base.pyi class BaseParser (line 26) | class BaseParser(object): method __call__ (line 31) | def __call__(self, locator: Union[Tuple[str, str], str], index: int = ... method ele (line 33) | def ele(self, method eles (line 38) | def eles(self, locator: Union[Tuple[str, str], str], timeout=None): ... method find (line 40) | def find(self, method html (line 59) | def html(self) -> str: ... method s_ele (line 61) | def s_ele(self, method s_eles (line 65) | def s_eles(self, locator: Union[Tuple[str, str], str]) -> SessionEleme... method _ele (line 67) | def _ele(self, method _find_elements (line 74) | def _find_elements(self, class BaseElement (line 82) | class BaseElement(BaseParser): method __init__ (line 86) | def __init__(self, owner: BasePage = None): ... method timeout (line 89) | def timeout(self) -> float: method child_count (line 94) | def child_count(self) -> int: method tag (line 100) | def tag(self) -> str: ... method parent (line 102) | def parent(self, level_or_loc: Union[tuple, str, int] = 1): ... method prev (line 104) | def prev(self, index: int = 1) -> None: ... method prevs (line 106) | def prevs(self) -> None: ... method next (line 108) | def next(self, index: int = 1): ... method nexts (line 110) | def nexts(self): ... method get_frame (line 112) | def get_frame(self, loc_or_ind, timeout=None) -> ChromiumFrame: method _ele (line 120) | def _ele(self, class DrissionElement (line 139) | class DrissionElement(BaseElement): method __init__ (line 142) | def __init__(self, owner: BasePage = None): ... method link (line 145) | def link(self) -> str: method css_path (line 150) | def css_path(self) -> str: method xpath (line 155) | def xpath(self) -> str: method comments (line 160) | def comments(self) -> list: method texts (line 164) | def texts(self, text_node_only: bool = False) -> list: method parent (line 171) | def parent(self, method child (line 183) | def child(self, method prev (line 197) | def prev(self, method next (line 211) | def next(self, method before (line 225) | def before(self, method after (line 239) | def after(self, method children (line 253) | def children(self, method prevs (line 265) | def prevs(self, method nexts (line 277) | def nexts(self, method befores (line 289) | def befores(self, method afters (line 301) | def afters(self, method _get_relative (line 313) | def _get_relative(self, method _get_relatives (line 332) | def _get_relatives(self, method attrs (line 351) | def attrs(self) -> dict: ... method text (line 354) | def text(self) -> str: ... method raw_text (line 357) | def raw_text(self) -> str: ... method attr (line 360) | def attr(self, name: str) -> str: ... method _get_ele_path (line 362) | def _get_ele_path(self, xpath: bool = True) -> str: ... class BasePage (line 365) | class BasePage(BaseParser): method __init__ (line 380) | def __init__(self): ... method title (line 383) | def title(self) -> Union[str, None]: method url_available (line 388) | def url_available(self) -> bool: method download_path (line 393) | def download_path(self) -> str: method download (line 398) | def download(self) -> DrissionGet: method _before_connect (line 402) | def _before_connect(self, url: str, retry: int, interval: float) -> tu... method _set_session_options (line 411) | def _set_session_options(self, session_or_options: Union[Session, Sess... method _create_session (line 418) | def _create_session(self) -> None: method url (line 424) | def url(self) -> str: ... method json (line 427) | def json(self) -> dict: ... method user_agent (line 430) | def user_agent(self) -> str: ... method get (line 433) | def get(self, url: str, show_errmsg: bool = False, retry: int = None, ... method _ele (line 435) | def _ele(self, FILE: DrissionPage/_base/chromium.py class Chromium (line 35) | class Chromium(object): method __new__ (line 39) | def __new__(cls, addr_or_opts=None, session_options=None): method __init__ (line 57) | def __init__(self, addr_or_opts=None, session_options=None): method user_data_path (line 123) | def user_data_path(self): method process_id (line 127) | def process_id(self): method timeout (line 131) | def timeout(self): method timeouts (line 135) | def timeouts(self): method load_mode (line 139) | def load_mode(self): method download_path (line 143) | def download_path(self): method set (line 147) | def set(self): method states (line 153) | def states(self): method wait (line 159) | def wait(self): method tabs_count (line 165) | def tabs_count(self): method tab_ids (line 170) | def tab_ids(self): method latest_tab (line 179) | def latest_tab(self): method cookies (line 182) | def cookies(self, all_info=False): method new_tab (line 187) | def new_tab(self, url=None, new_window=False, background=False, new_co... method get_tab (line 190) | def get_tab(self, id_or_num=None, title=None, url=None, tab_type='page'): method get_tabs (line 196) | def get_tabs(self, title=None, url=None, tab_type='page'): method close_tabs (line 199) | def close_tabs(self, tabs_or_ids, others=False): method _close_tab (line 220) | def _close_tab(self, tab): method activate_tab (line 227) | def activate_tab(self, id_ind_tab): method reconnect (line 235) | def reconnect(self): method clear_cache (line 245) | def clear_cache(self, cache=True, cookies=True): method quit (line 252) | def quit(self, timeout=5, force=False, del_data=False): method _new_tab (line 304) | def _new_tab(self, mix=True, url=None, new_window=False, background=Fa... method _get_tab (line 337) | def _get_tab(self, id_or_num=None, title=None, url=None, tab_type='pag... method _get_tabs (line 365) | def _get_tabs(self, title=None, url=None, tab_type='page', mix=True, a... method _run_cdp (line 392) | def _run_cdp(self, cmd, **cmd_args): method _get_driver (line 397) | def _get_driver(self, tab_id, owner=None): method _onTargetCreated (line 409) | def _onTargetCreated(self, **kwargs): method _onTargetDestroyed (line 428) | def _onTargetDestroyed(self, **kwargs): method _on_disconnect (line 439) | def _on_disconnect(self): function handle_options (line 456) | def handle_options(addr_or_opts): function run_browser (line 486) | def run_browser(chromium_options): function _new_tab_by_js (line 544) | def _new_tab_by_js(browser: Chromium, url, tab_type, new_window): FILE: DrissionPage/_base/chromium.pyi class Chromium (line 24) | class Chromium(object): method __new__ (line 59) | def __new__(cls, method __init__ (line 68) | def __init__(self, addr_or_opts: Union[str, int, ChromiumOptions] = None, method user_data_path (line 77) | def user_data_path(self) -> str: method process_id (line 82) | def process_id(self) -> Optional[int]: method timeout (line 87) | def timeout(self) -> float: method timeouts (line 92) | def timeouts(self) -> Timeout: method load_mode (line 97) | def load_mode(self) -> Literal['none', 'normal', 'eager']: method download_path (line 102) | def download_path(self) -> str: method set (line 107) | def set(self) -> BrowserSetter: method states (line 112) | def states(self) -> BrowserStates: method wait (line 117) | def wait(self) -> BrowserWaiter: method tabs_count (line 122) | def tabs_count(self) -> int: method tab_ids (line 127) | def tab_ids(self) -> List[str]: method latest_tab (line 132) | def latest_tab(self) -> Union[MixTab, str]: method cookies (line 137) | def cookies(self, all_info: bool = False) -> CookiesList: method new_tab (line 144) | def new_tab(self, method get_tab (line 158) | def get_tab(self, method get_tabs (line 174) | def get_tabs(self, method close_tabs (line 188) | def close_tabs(self, method _close_tab (line 199) | def _close_tab(self, tab: Union[ChromiumBase, str]): method activate_tab (line 205) | def activate_tab(self, id_ind_tab: Union[int, str, ChromiumTab]) -> None: method reconnect (line 212) | def reconnect(self) -> None: method clear_cache (line 216) | def clear_cache(self, cache: bool = True, cookies: bool = True) -> None: method quit (line 224) | def quit(self, timeout: float = 5, force: bool = False, del_data: bool... method _new_tab (line 233) | def _new_tab(self, method _get_tab (line 249) | def _get_tab(self, method _get_tabs (line 267) | def _get_tabs(self, method _run_cdp (line 283) | def _run_cdp(self, cmd, **cmd_args) -> dict: method _get_driver (line 291) | def _get_driver(self, tab_id: str, owner=None) -> Driver: method _onTargetCreated (line 299) | def _onTargetCreated(self, **kwargs): ... method _onTargetDestroyed (line 301) | def _onTargetDestroyed(self, **kwargs): ... method _on_disconnect (line 303) | def _on_disconnect(self): ... function handle_options (line 306) | def handle_options(addr_or_opts): function run_browser (line 314) | def run_browser(chromium_options)->Tuple[bool, str, bool, bool, BrowserD... FILE: DrissionPage/_base/driver.py class Driver (line 24) | class Driver(object): method __init__ (line 25) | def __init__(self, _id, address, owner=None): method _send (line 51) | def _send(self, message, timeout=None): method _recv_loop (line 88) | def _recv_loop(self): method _handle_event_loop (line 112) | def _handle_event_loop(self): method _handle_immediate_event_loop (line 125) | def _handle_immediate_event_loop(self): method _handle_immediate_event (line 133) | def _handle_immediate_event(self, function, kwargs): method run (line 140) | def run(self, _method, **kwargs): method start (line 156) | def start(self): method stop (line 171) | def stop(self): method _stop (line 177) | def _stop(self): method set_callback (line 193) | def set_callback(self, event, callback, immediate=False): class BrowserDriver (line 201) | class BrowserDriver(Driver): method __new__ (line 204) | def __new__(cls, _id, address, owner): method __init__ (line 209) | def __init__(self, _id, address, owner): method __repr__ (line 216) | def __repr__(self): method get (line 220) | def get(url): FILE: DrissionPage/_base/driver.pyi class Driver (line 18) | class Driver(object): method __init__ (line 36) | def __init__(self, _id: str, address: str, owner=None): method _send (line 44) | def _send(self, message: dict, timeout: float = None) -> dict: method _recv_loop (line 52) | def _recv_loop(self) -> None: method _handle_event_loop (line 56) | def _handle_event_loop(self) -> None: method _handle_immediate_event_loop (line 60) | def _handle_immediate_event_loop(self): ... method _handle_immediate_event (line 62) | def _handle_immediate_event(self, function: Callable, kwargs: dict): method run (line 70) | def run(self, _method: str, **kwargs) -> dict: method start (line 78) | def start(self) -> bool: method stop (line 82) | def stop(self) -> bool: method _stop (line 86) | def _stop(self) -> None: method set_callback (line 90) | def set_callback(self, event: str, callback: Union[Callable, None], im... class BrowserDriver (line 100) | class BrowserDriver(Driver): method __new__ (line 104) | def __new__(cls, _id: str, address: str, owner: Chromium): method __init__ (line 112) | def __init__(self, _id: str, address: str, owner: Optional[Chromium]): method get (line 121) | def get(url) -> Response: FILE: DrissionPage/_configs/chromium_options.py class ChromiumOptions (line 16) | class ChromiumOptions(object): method __init__ (line 17) | def __init__(self, read_file=True, ini_path=None): method __repr__ (line 82) | def __repr__(self): method download_path (line 86) | def download_path(self): method browser_path (line 90) | def browser_path(self): method user_data_path (line 94) | def user_data_path(self): method tmp_path (line 98) | def tmp_path(self): method user (line 102) | def user(self): method load_mode (line 106) | def load_mode(self): method timeouts (line 110) | def timeouts(self): method proxy (line 114) | def proxy(self): method address (line 118) | def address(self): method arguments (line 122) | def arguments(self): method extensions (line 126) | def extensions(self): method preferences (line 130) | def preferences(self): method flags (line 134) | def flags(self): method system_user_path (line 138) | def system_user_path(self): method is_existing_only (line 142) | def is_existing_only(self): method is_auto_port (line 146) | def is_auto_port(self): method retry_times (line 150) | def retry_times(self): method retry_interval (line 154) | def retry_interval(self): method is_headless (line 158) | def is_headless(self): method set_retry (line 161) | def set_retry(self, times=None, interval=None): method set_argument (line 168) | def set_argument(self, arg, value=None): method remove_argument (line 186) | def remove_argument(self, value): method add_extension (line 198) | def add_extension(self, path): method remove_extensions (line 202) | def remove_extensions(self): method set_pref (line 206) | def set_pref(self, arg, value): method remove_pref (line 210) | def remove_pref(self, arg): method remove_pref_from_file (line 214) | def remove_pref_from_file(self, arg): method set_flag (line 218) | def set_flag(self, flag, value=None): method clear_flags_in_file (line 225) | def clear_flags_in_file(self): method clear_flags (line 229) | def clear_flags(self): method clear_arguments (line 233) | def clear_arguments(self): method clear_prefs (line 237) | def clear_prefs(self): method set_timeouts (line 241) | def set_timeouts(self, base=None, page_load=None, script=None): method set_user (line 251) | def set_user(self, user='Default'): method headless (line 256) | def headless(self, on_off=True): method no_imgs (line 260) | def no_imgs(self, on_off=True): method no_js (line 264) | def no_js(self, on_off=True): method mute (line 268) | def mute(self, on_off=True): method incognito (line 272) | def incognito(self, on_off=True): method new_env (line 277) | def new_env(self, on_off=True): method ignore_certificate_errors (line 281) | def ignore_certificate_errors(self, on_off=True): method set_user_agent (line 285) | def set_user_agent(self, user_agent): method set_proxy (line 288) | def set_proxy(self, proxy): method set_load_mode (line 296) | def set_load_mode(self, value): method set_paths (line 303) | def set_paths(self, browser_path=None, local_port=None, address=None, ... method set_local_port (line 334) | def set_local_port(self, port): method set_address (line 340) | def set_address(self, address): method set_browser_path (line 352) | def set_browser_path(self, path): method set_download_path (line 356) | def set_download_path(self, path): method set_tmp_path (line 360) | def set_tmp_path(self, path): method set_user_data_path (line 364) | def set_user_data_path(self, path): method set_cache_path (line 371) | def set_cache_path(self, path): method use_system_user_path (line 375) | def use_system_user_path(self, on_off=True): method auto_port (line 379) | def auto_port(self, on_off=True, scope=None): method existing_only (line 388) | def existing_only(self, on_off=True): method save (line 392) | def save(self, path=None): method save_to_default (line 438) | def save_to_default(self): FILE: DrissionPage/_configs/chromium_options.pyi class ChromiumOptions (line 12) | class ChromiumOptions(object): method __init__ (line 39) | def __init__(self, method download_path (line 49) | def download_path(self) -> str: method browser_path (line 54) | def browser_path(self) -> str: method user_data_path (line 59) | def user_data_path(self) -> str: method tmp_path (line 64) | def tmp_path(self) -> Optional[str]: method user (line 69) | def user(self) -> str: method load_mode (line 74) | def load_mode(self) -> str: method timeouts (line 79) | def timeouts(self) -> dict: method proxy (line 84) | def proxy(self) -> str: method address (line 89) | def address(self) -> str: method arguments (line 94) | def arguments(self) -> list: method extensions (line 99) | def extensions(self) -> list: method preferences (line 104) | def preferences(self) -> dict: method flags (line 109) | def flags(self) -> dict: method system_user_path (line 114) | def system_user_path(self) -> bool: method is_existing_only (line 119) | def is_existing_only(self) -> bool: method is_auto_port (line 124) | def is_auto_port(self) -> Union[bool, Tuple[int, int]]: method retry_times (line 129) | def retry_times(self) -> int: method retry_interval (line 134) | def retry_interval(self) -> float: method is_headless (line 139) | def is_headless(self) -> bool: method set_retry (line 143) | def set_retry(self, times: int = None, interval: float = None) -> Chro... method set_argument (line 151) | def set_argument(self, arg: str, value: Union[str, None, bool] = None)... method remove_argument (line 159) | def remove_argument(self, value: str) -> ChromiumOptions: method add_extension (line 166) | def add_extension(self, path: Union[str, Path]) -> ChromiumOptions: method remove_extensions (line 173) | def remove_extensions(self) -> ChromiumOptions: method set_pref (line 179) | def set_pref(self, arg: str, value: Any) -> ChromiumOptions: method remove_pref (line 187) | def remove_pref(self, arg: str) -> ChromiumOptions: method remove_pref_from_file (line 194) | def remove_pref_from_file(self, arg: str) -> ChromiumOptions: method set_flag (line 201) | def set_flag(self, flag: str, value: Union[int, str, bool] = None) -> ... method clear_flags_in_file (line 209) | def clear_flags_in_file(self) -> ChromiumOptions: method clear_flags (line 213) | def clear_flags(self) -> ChromiumOptions: method clear_arguments (line 217) | def clear_arguments(self) -> ChromiumOptions: method clear_prefs (line 221) | def clear_prefs(self) -> ChromiumOptions: method set_timeouts (line 225) | def set_timeouts(self, method set_user (line 237) | def set_user(self, user: str = 'Default') -> ChromiumOptions: method headless (line 244) | def headless(self, on_off: bool = True) -> ChromiumOptions: method no_imgs (line 251) | def no_imgs(self, on_off: bool = True) -> ChromiumOptions: method no_js (line 258) | def no_js(self, on_off: bool = True) -> ChromiumOptions: method mute (line 265) | def mute(self, on_off: bool = True) -> ChromiumOptions: method incognito (line 272) | def incognito(self, on_off: bool = True) -> ChromiumOptions: method new_env (line 279) | def new_env(self, on_off: bool = True) -> ChromiumOptions: method ignore_certificate_errors (line 286) | def ignore_certificate_errors(self, on_off=True) -> ChromiumOptions: method set_user_agent (line 293) | def set_user_agent(self, user_agent: str) -> ChromiumOptions: method set_proxy (line 300) | def set_proxy(self, proxy: str) -> ChromiumOptions: method set_load_mode (line 307) | def set_load_mode(self, value: Literal['normal', 'eager', 'none']) -> ... method set_local_port (line 317) | def set_local_port(self, port: Union[str, int]) -> ChromiumOptions: method set_address (line 324) | def set_address(self, address: str) -> ChromiumOptions: method set_browser_path (line 331) | def set_browser_path(self, path: Union[str, Path]) -> ChromiumOptions: method set_download_path (line 338) | def set_download_path(self, path: Union[str, Path]) -> ChromiumOptions: method set_tmp_path (line 345) | def set_tmp_path(self, path: Union[str, Path]) -> ChromiumOptions: method set_user_data_path (line 352) | def set_user_data_path(self, path: Union[str, Path]) -> ChromiumOptions: method set_cache_path (line 359) | def set_cache_path(self, path: Union[str, Path]) -> ChromiumOptions: method use_system_user_path (line 366) | def use_system_user_path(self, on_off: bool = True) -> ChromiumOptions: method auto_port (line 373) | def auto_port(self, method existing_only (line 383) | def existing_only(self, on_off: bool = True) -> ChromiumOptions: method save (line 390) | def save(self, path: Union[str, Path] = None) -> str: method save_to_default (line 397) | def save_to_default(self) -> str: FILE: DrissionPage/_configs/options_manage.py class OptionsManager (line 15) | class OptionsManager(object): method __init__ (line 16) | def __init__(self, path=None): method __getattr__ (line 78) | def __getattr__(self, item): method get_value (line 81) | def get_value(self, section, item): method get_option (line 89) | def get_option(self, section): method set_item (line 101) | def set_item(self, section, item, value): method remove_item (line 106) | def remove_item(self, section, item): method save (line 110) | def save(self, path=None): method save_to_default (line 134) | def save_to_default(self): method show (line 137) | def show(self): FILE: DrissionPage/_configs/options_manage.pyi class OptionsManager (line 13) | class OptionsManager(object): method __init__ (line 19) | def __init__(self, path: Union[Path, str] = None): method __getattr__ (line 25) | def __getattr__(self, item) -> dict: method get_value (line 32) | def get_value(self, section: str, item: str) -> Any: method get_option (line 40) | def get_option(self, section: str) -> dict: method set_item (line 47) | def set_item(self, section: str, item: str, value: Any) -> None: method remove_item (line 56) | def remove_item(self, section: str, item: str) -> None: method save (line 64) | def save(self, path: str = None) -> str: method save_to_default (line 71) | def save_to_default(self) -> str: method show (line 75) | def show(self) -> None: FILE: DrissionPage/_configs/session_options.py class SessionOptions (line 20) | class SessionOptions(object): method __init__ (line 22) | def __init__(self, read_file=True, ini_path=None): method __repr__ (line 89) | def __repr__(self): method download_path (line 94) | def download_path(self): method set_download_path (line 97) | def set_download_path(self, path): method timeout (line 102) | def timeout(self): method set_timeout (line 105) | def set_timeout(self, second): method proxies (line 110) | def proxies(self): method set_proxies (line 115) | def set_proxies(self, http=None, https=None): method retry_times (line 120) | def retry_times(self): method retry_interval (line 124) | def retry_interval(self): method set_retry (line 127) | def set_retry(self, times=None, interval=None): method headers (line 137) | def headers(self): method set_headers (line 142) | def set_headers(self, headers): method set_a_header (line 151) | def set_a_header(self, name, value): method remove_a_header (line 158) | def remove_a_header(self, name): method clear_headers (line 166) | def clear_headers(self): method cookies (line 171) | def cookies(self): method set_cookies (line 176) | def set_cookies(self, cookies): method auth (line 182) | def auth(self): method set_auth (line 185) | def set_auth(self, auth): method hooks (line 190) | def hooks(self): method set_hooks (line 195) | def set_hooks(self, hooks): method params (line 200) | def params(self): method set_params (line 205) | def set_params(self, params): method verify (line 210) | def verify(self): method set_verify (line 213) | def set_verify(self, on_off): method cert (line 218) | def cert(self): method set_cert (line 221) | def set_cert(self, cert): method adapters (line 226) | def adapters(self): method add_adapter (line 231) | def add_adapter(self, url, adapter): method stream (line 236) | def stream(self): method set_stream (line 239) | def set_stream(self, on_off): method trust_env (line 244) | def trust_env(self): method set_trust_env (line 247) | def set_trust_env(self, on_off): method max_redirects (line 252) | def max_redirects(self): method set_max_redirects (line 255) | def set_max_redirects(self, times): method _sets (line 259) | def _sets(self, arg, val): method save (line 268) | def save(self, path=None): method save_to_default (line 315) | def save_to_default(self): method as_dict (line 318) | def as_dict(self): method make_session (line 321) | def make_session(self): method from_session (line 338) | def from_session(self, session, headers=None): function session_options_to_dict (line 355) | def session_options_to_dict(options): FILE: DrissionPage/_configs/session_options.pyi class SessionOptions (line 19) | class SessionOptions(object): method __init__ (line 41) | def __init__(self, method download_path (line 51) | def download_path(self) -> str: method set_download_path (line 55) | def set_download_path(self, path: Union[str, Path]) -> SessionOptions: method timeout (line 63) | def timeout(self) -> float: method set_timeout (line 67) | def set_timeout(self, second: float) -> SessionOptions: method proxies (line 75) | def proxies(self) -> dict: method set_proxies (line 79) | def set_proxies(self, http: Union[str, None], https: Union[str, None] ... method retry_times (line 88) | def retry_times(self) -> int: method retry_interval (line 93) | def retry_interval(self) -> float: method set_retry (line 97) | def set_retry(self, times: int = None, interval: float = None) -> Sess... method headers (line 106) | def headers(self) -> dict: method set_headers (line 110) | def set_headers(self, headers: Union[dict, str, None]) -> SessionOptions: method set_a_header (line 117) | def set_a_header(self, name: str, value: str) -> SessionOptions: method remove_a_header (line 125) | def remove_a_header(self, name: str) -> SessionOptions: method clear_headers (line 132) | def clear_headers(self) -> SessionOptions: method cookies (line 137) | def cookies(self) -> list: method set_cookies (line 141) | def set_cookies(self, cookies: Union[Cookie, CookieJar, list, tuple, s... method auth (line 149) | def auth(self) -> Union[Tuple[str, str], HTTPBasicAuth]: method set_auth (line 153) | def set_auth(self, auth: Union[Tuple[str, str], HTTPBasicAuth, None]) ... method hooks (line 161) | def hooks(self) -> dict: method set_hooks (line 165) | def set_hooks(self, hooks: Union[dict, None]) -> SessionOptions: method params (line 173) | def params(self) -> dict: method set_params (line 177) | def set_params(self, params: Union[dict, None]) -> SessionOptions: method verify (line 185) | def verify(self) -> bool: method set_verify (line 189) | def set_verify(self, on_off: Union[bool, None]) -> SessionOptions: method cert (line 197) | def cert(self) -> Union[str, tuple]: method set_cert (line 201) | def set_cert(self, cert: Union[str, Tuple[str, str], None]) -> Session... method adapters (line 209) | def adapters(self) -> list: method add_adapter (line 213) | def add_adapter(self, url: str, adapter: HTTPAdapter) -> SessionOptions: method stream (line 222) | def stream(self) -> bool: method set_stream (line 226) | def set_stream(self, on_off: Union[bool, None]) -> SessionOptions: method trust_env (line 234) | def trust_env(self) -> bool: method set_trust_env (line 238) | def set_trust_env(self, on_off: Union[bool, None]) -> SessionOptions: method max_redirects (line 246) | def max_redirects(self) -> int: method set_max_redirects (line 250) | def set_max_redirects(self, times: Union[int, None]) -> SessionOptions: method _sets (line 257) | def _sets(self, arg: str, val: Any) -> None: method save (line 265) | def save(self, path: str = None) -> str: method save_to_default (line 272) | def save_to_default(self) -> str: method as_dict (line 276) | def as_dict(self) -> dict: method make_session (line 280) | def make_session(self) -> Tuple[Session, Optional[CaseInsensitiveDict]]: method from_session (line 284) | def from_session(self, session: Session, headers: CaseInsensitiveDict ... function session_options_to_dict (line 293) | def session_options_to_dict(options: Union[dict, SessionOptions, None]) ... FILE: DrissionPage/_elements/chromium_element.py class ChromiumElement (line 38) | class ChromiumElement(DrissionElement): method __init__ (line 40) | def __init__(self, owner, node_id=None, obj_id=None, backend_id=None): method __call__ (line 74) | def __call__(self, locator, index=1, timeout=None): method __repr__ (line 77) | def __repr__(self): method __eq__ (line 81) | def __eq__(self, other): method tag (line 85) | def tag(self): method html (line 92) | def html(self): method inner_html (line 96) | def inner_html(self): method attrs (line 100) | def attrs(self): method text (line 112) | def text(self): method raw_text (line 116) | def raw_text(self): method set (line 121) | def set(self): method states (line 127) | def states(self): method pseudo (line 133) | def pseudo(self): method rect (line 139) | def rect(self): method sr (line 145) | def sr(self): method shadow_root (line 154) | def shadow_root(self): method scroll (line 158) | def scroll(self): method click (line 164) | def click(self): method wait (line 170) | def wait(self): method select (line 176) | def select(self): method value (line 185) | def value(self): method check (line 188) | def check(self, uncheck=False, by_js=False): method parent (line 206) | def parent(self, level_or_loc=1, index=1, timeout=0): method child (line 209) | def child(self, locator='', index=1, timeout=None, ele_only=True): method prev (line 212) | def prev(self, locator='', index=1, timeout=None, ele_only=True): method next (line 215) | def next(self, locator='', index=1, timeout=None, ele_only=True): method before (line 218) | def before(self, locator='', index=1, timeout=None, ele_only=True): method after (line 221) | def after(self, locator='', index=1, timeout=None, ele_only=True): method children (line 224) | def children(self, locator='', timeout=None, ele_only=True): method prevs (line 227) | def prevs(self, locator='', timeout=None, ele_only=True): method nexts (line 230) | def nexts(self, locator='', timeout=None, ele_only=True): method befores (line 233) | def befores(self, locator='', timeout=None, ele_only=True): method afters (line 236) | def afters(self, locator='', timeout=None, ele_only=True): method over (line 239) | def over(self, timeout=None): method offset (line 249) | def offset(self, locator=None, x=None, y=None, timeout=None): method east (line 294) | def east(self, loc_or_pixel=None, index=1): method south (line 297) | def south(self, loc_or_pixel=None, index=1): method west (line 300) | def west(self, loc_or_pixel=None, index=1): method north (line 303) | def north(self, loc_or_pixel=None, index=1): method _get_relative_eles (line 306) | def _get_relative_eles(self, mode='north', locator=None, index=1): method attr (line 372) | def attr(self, name): method remove_attr (line 399) | def remove_attr(self, name): method property (line 403) | def property(self, name): method run_js (line 410) | def run_js(self, script, *args, as_expr=False, timeout=None): method _run_js (line 413) | def _run_js(self, script, *args, as_expr=False, timeout=None): method run_async_js (line 416) | def run_async_js(self, script, *args, as_expr=False): method ele (line 419) | def ele(self, locator, index=1, timeout=None): method eles (line 422) | def eles(self, locator, timeout=None): method s_ele (line 425) | def s_ele(self, locator=None, index=1, timeout=None): method s_eles (line 430) | def s_eles(self, locator=None, timeout=None): method _find_elements (line 434) | def _find_elements(self, locator, timeout, index=1, relative=False, ra... method style (line 437) | def style(self, style, pseudo_ele=''): method src (line 442) | def src(self, timeout=None, base64_to_bytes=True): method save (line 502) | def save(self, path=None, name=None, timeout=None, rename=True): method get_screenshot (line 527) | def get_screenshot(self, path=None, name=None, as_bytes=None, as_base6... method input (line 547) | def input(self, vals, clear=False, by_js=False): method clear (line 574) | def clear(self, by_js=False): method _input_focus (line 584) | def _input_focus(self): method focus (line 590) | def focus(self): method hover (line 597) | def hover(self, offset_x=None, offset_y=None): method drag (line 601) | def drag(self, offset_x=0, offset_y=0, duration=.5): method drag_to (line 608) | def drag_to(self, ele_or_loc, duration=.5): method _get_obj_id (line 617) | def _get_obj_id(self, node_id=None, backend_id=None): method _get_node_id (line 623) | def _get_node_id(self, obj_id=None, backend_id=None): method _get_backend_id (line 631) | def _get_backend_id(self, node_id): method _refresh_id (line 636) | def _refresh_id(self): method _get_ele_path (line 640) | def _get_ele_path(self, xpath=True): method _set_file_input (line 678) | def _set_file_input(self, files): class ShadowRoot (line 686) | class ShadowRoot(BaseElement): method __init__ (line 688) | def __init__(self, parent_ele, obj_id=None, backend_id=None): method __call__ (line 703) | def __call__(self, locator, index=1, timeout=None): method __repr__ (line 706) | def __repr__(self): method __eq__ (line 709) | def __eq__(self, other): method tag (line 713) | def tag(self): method html (line 717) | def html(self): method inner_html (line 721) | def inner_html(self): method states (line 725) | def states(self): method run_js (line 730) | def run_js(self, script, *args, as_expr=False, timeout=None): method _run_js (line 733) | def _run_js(self, script, *args, as_expr=False, timeout=None): method run_async_js (line 736) | def run_async_js(self, script, *args, as_expr=False, timeout=None): method parent (line 741) | def parent(self, level_or_loc=1, index=1, timeout=0): method child (line 759) | def child(self, locator='', index=1, timeout=None): method next (line 774) | def next(self, locator='', index=1, timeout=None): method before (line 786) | def before(self, locator='', index=1, timeout=None): method after (line 798) | def after(self, locator='', index=1, timeout=None): method children (line 803) | def children(self, locator='', timeout=None): method nexts (line 815) | def nexts(self, locator='', timeout=None): method befores (line 824) | def befores(self, locator='', timeout=None): method afters (line 833) | def afters(self, locator='', timeout=None): method ele (line 839) | def ele(self, locator, index=1, timeout=None): method eles (line 842) | def eles(self, locator, timeout=None): method s_ele (line 845) | def s_ele(self, locator=None, index=1, timeout=None): method s_eles (line 850) | def s_eles(self, locator, timeout=None): method _find_elements (line 854) | def _find_elements(self, locator, timeout, index=1, relative=False, ra... method _get_node_id (line 934) | def _get_node_id(self, obj_id): method _get_obj_id (line 937) | def _get_obj_id(self, back_id): method _get_backend_id (line 940) | def _get_backend_id(self, node_id): function find_in_chromium_ele (line 946) | def find_in_chromium_ele(ele, locator, index=1, timeout=None, relative=T... function find_by_xpath (line 971) | def find_by_xpath(ele, xpath, index, timeout, relative=True): function find_by_css (line 1036) | def find_by_css(ele, selector, index, timeout): function make_chromium_eles (line 1078) | def make_chromium_eles(page, _ids, index=1, is_obj_id=True, ele_only=Fal... function _get_node_info (line 1111) | def _get_node_info(page, id_type, _id): function _get_node_by_obj_id (line 1121) | def _get_node_by_obj_id(page, obj_id, ele_only): function _get_node_by_node_id (line 1132) | def _get_node_by_node_id(page, node_id, ele_only): function _make_ele (line 1147) | def _make_ele(page, obj_id, node): function make_js_for_find_ele_by_xpath (line 1156) | def make_js_for_find_ele_by_xpath(xpath, type_txt, node_txt): function run_js (line 1192) | def run_js(page_or_ele, script, as_expr, timeout, args=None): function parse_js_result (line 1251) | def parse_js_result(page, ele, result, end_time): function convert_argument (line 1306) | def convert_argument(arg): class Pseudo (line 1322) | class Pseudo(object): method __init__ (line 1323) | def __init__(self, ele): method before (line 1327) | def before(self): method after (line 1335) | def after(self): function _check_ele (line 1343) | def _check_ele(ele, loc_data): FILE: DrissionPage/_elements/chromium_element.pyi class ChromiumElement (line 30) | class ChromiumElement(DrissionElement): method __init__ (line 48) | def __init__(self, method __call__ (line 61) | def __call__(self, method __repr__ (line 72) | def __repr__(self) -> str: ... method __eq__ (line 74) | def __eq__(self, other: ChromiumElement) -> bool: ... method tag (line 77) | def tag(self) -> str: method html (line 82) | def html(self) -> str: method inner_html (line 87) | def inner_html(self) -> str: method attrs (line 92) | def attrs(self) -> dict: method text (line 97) | def text(self) -> str: method raw_text (line 102) | def raw_text(self) -> str: method set (line 107) | def set(self) -> ChromiumElementSetter: method states (line 112) | def states(self) -> ElementStates: method pseudo (line 117) | def pseudo(self) -> Pseudo: method rect (line 122) | def rect(self) -> ElementRect: method shadow_root (line 127) | def shadow_root(self) -> Union[None, ShadowRoot]: method sr (line 132) | def sr(self) -> Union[None, ShadowRoot]: method scroll (line 137) | def scroll(self) -> ElementScroller: method click (line 142) | def click(self) -> Clicker: method wait (line 147) | def wait(self) -> ElementWaiter: method select (line 152) | def select(self) -> Union[SelectElement, False]: method value (line 157) | def value(self) -> str: method parent (line 161) | def parent(self, method child (line 173) | def child(self, method prev (line 187) | def prev(self, method next (line 201) | def next(self, method before (line 215) | def before(self, method after (line 230) | def after(self, method children (line 245) | def children(self, method prevs (line 257) | def prevs(self, method nexts (line 269) | def nexts(self, method befores (line 281) | def befores(self, method afters (line 294) | def afters(self, method over (line 307) | def over(self, timeout: float = None) -> ChromiumElement: method offset (line 314) | def offset(self, method east (line 328) | def east(self, loc_or_pixel: Union[str, int, None] = None, index: int ... method south (line 336) | def south(self, loc_or_pixel: Union[str, int, None] = None, index: int... method west (line 344) | def west(self, loc_or_pixel: Union[str, int, None] = None, index: int ... method north (line 352) | def north(self, loc_or_pixel: Union[str, int, None] = None, index: int... method _get_relative_eles (line 360) | def _get_relative_eles(self, method check (line 371) | def check(self, uncheck: bool = False, by_js: bool = False) -> None: method attr (line 379) | def attr(self, name: str) -> Union[str, None]: method remove_attr (line 386) | def remove_attr(self, name: str) -> ChromiumElement: method property (line 393) | def property(self, name: str) -> Union[str, int, None]: method run_js (line 400) | def run_js(self, script: str, *args, as_expr: bool = False, timeout: f... method _run_js (line 410) | def _run_js(self, script: str, *args, as_expr: bool = False, timeout: ... method run_async_js (line 420) | def run_async_js(self, script: str, *args, as_expr: bool = False) -> N... method ele (line 429) | def ele(self, method eles (line 441) | def eles(self, method s_ele (line 451) | def s_ele(self, method s_eles (line 463) | def s_eles(self, method _find_elements (line 473) | def _find_elements(self, method style (line 489) | def style(self, style: str, pseudo_ele: str = '') -> str: method src (line 497) | def src(self, timeout: float = None, base64_to_bytes: bool = True) -> ... method save (line 505) | def save(self, method get_screenshot (line 519) | def get_screenshot(self, method input (line 535) | def input(self, vals: Any, clear: bool = False, by_js: bool = False) -... method clear (line 544) | def clear(self, by_js: bool = False) -> ChromiumElement: method _input_focus (line 551) | def _input_focus(self) -> None: method focus (line 555) | def focus(self) -> ChromiumElement: method hover (line 559) | def hover(self, offset_x: int = None, offset_y: int = None) -> Chromiu... method drag (line 567) | def drag(self, offset_x: int = 0, offset_y: int = 0, duration: float =... method drag_to (line 576) | def drag_to(self, method _get_obj_id (line 586) | def _get_obj_id(self, node_id: int = None, backend_id: int = None) -> ... method _get_node_id (line 588) | def _get_node_id(self, obj_id: str = None, backend_id: int = None) -> ... method _get_backend_id (line 590) | def _get_backend_id(self, node_id: int) -> int: ... method _refresh_id (line 592) | def _refresh_id(self) -> None: method _get_ele_path (line 596) | def _get_ele_path(self, xpath: bool = True) -> str: method _set_file_input (line 600) | def _set_file_input(self, files: Union[str, list, tuple]) -> None: class ShadowRoot (line 608) | class ShadowRoot(BaseElement): method __init__ (line 617) | def __init__(self, parent_ele: ChromiumElement, obj_id: str = None, ba... method __call__ (line 625) | def __call__(self, method __repr__ (line 638) | def __repr__(self) -> str: ... method __eq__ (line 640) | def __eq__(self, other: ShadowRoot) -> bool: ... method tag (line 643) | def tag(self) -> str: method html (line 648) | def html(self) -> str: method inner_html (line 653) | def inner_html(self) -> str: method states (line 658) | def states(self) -> ShadowRootStates: method run_js (line 662) | def run_js(self, method _run_js (line 676) | def _run_js(self, method run_async_js (line 690) | def run_async_js(self, method parent (line 704) | def parent(self, method child (line 716) | def child(self, method next (line 727) | def next(self, method before (line 738) | def before(self, method after (line 750) | def after(self, method children (line 762) | def children(self, locator: Union[Tuple[str, str], str] = '', timeout:... method nexts (line 770) | def nexts(self, locator: Union[Tuple[str, str], str] = '', timeout: fl... method befores (line 778) | def befores(self, locator: Union[Tuple[str, str], str] = '', timeout: ... method afters (line 787) | def afters(self, locator: Union[Tuple[str, str], str] = '', timeout: f... method ele (line 796) | def ele(self, method eles (line 808) | def eles(self, method s_ele (line 818) | def s_ele(self, method s_eles (line 830) | def s_eles(self, locator: Union[Tuple[str, str], str], timeout: float ... method _find_elements (line 838) | def _find_elements(self, method _get_node_id (line 854) | def _get_node_id(self, obj_id: str) -> int: ... method _get_obj_id (line 856) | def _get_obj_id(self, back_id: int) -> str: ... method _get_backend_id (line 858) | def _get_backend_id(self, node_id: int) -> int: ... function find_in_chromium_ele (line 861) | def find_in_chromium_ele(ele: ChromiumElement, function find_by_xpath (line 877) | def find_by_xpath(ele: ChromiumElement, function find_by_css (line 893) | def find_by_css(ele: ChromiumElement, function make_chromium_eles (line 907) | def make_chromium_eles(page: Union[ChromiumBase, ChromiumPage, WebPage, ... function make_js_for_find_ele_by_xpath (line 924) | def make_js_for_find_ele_by_xpath(xpath: str, type_txt: str, node_txt: s... function run_js (line 934) | def run_js(page_or_ele: Union[ChromiumBase, ChromiumElement, ShadowRoot], function parse_js_result (line 950) | def parse_js_result(page: ChromiumBase, function convert_argument (line 958) | def convert_argument(arg: Any) -> dict: class Pseudo (line 963) | class Pseudo(object): method __init__ (line 966) | def __init__(self, ele: ChromiumElement): method before (line 973) | def before(self) -> str: method after (line 978) | def after(self) -> str: FILE: DrissionPage/_elements/none_element.py class NoneElement (line 12) | class NoneElement(object): method __init__ (line 13) | def __init__(self, page=None, method=None, args=None): method __call__ (line 26) | def __call__(self, *args, **kwargs): method __repr__ (line 32) | def __repr__(self): method __getattr__ (line 35) | def __getattr__(self, item): method __eq__ (line 48) | def __eq__(self, other): method __bool__ (line 51) | def __bool__(self): FILE: DrissionPage/_elements/none_element.pyi class NoneElement (line 13) | class NoneElement(object): method __init__ (line 19) | def __init__(self, method __call__ (line 30) | def __call__(self, *args, **kwargs) -> NoneElement: ... method __repr__ (line 32) | def __repr__(self) -> str: ... method __getattr__ (line 34) | def __getattr__(self, item: str) -> str: ... method __eq__ (line 36) | def __eq__(self, other: Any) -> bool: ... method __bool__ (line 38) | def __bool__(self) -> bool: ... FILE: DrissionPage/_elements/session_element.py class SessionElement (line 23) | class SessionElement(DrissionElement): method __init__ (line 25) | def __init__(self, ele, owner=None): method __repr__ (line 34) | def __repr__(self): method __call__ (line 38) | def __call__(self, locator, index=1, timeout=None): method __eq__ (line 41) | def __eq__(self, other): method inner_ele (line 45) | def inner_ele(self): method tag (line 49) | def tag(self): method html (line 53) | def html(self): method inner_html (line 58) | def inner_html(self): method attrs (line 63) | def attrs(self): method text (line 70) | def text(self): method raw_text (line 74) | def raw_text(self): method parent (line 77) | def parent(self, level_or_loc=1, index=1, timeout: float = None): method child (line 80) | def child(self, locator='', index=1, timeout=None, ele_only=True): method prev (line 83) | def prev(self, locator='', index=1, timeout=None, ele_only=True): method next (line 86) | def next(self, locator='', index=1, timeout=None, ele_only=True): method before (line 89) | def before(self, locator='', index=1, timeout=None, ele_only=True): method after (line 92) | def after(self, locator='', index=1, timeout=None, ele_only=True): method children (line 95) | def children(self, locator='', timeout=0, ele_only=True): method prevs (line 98) | def prevs(self, locator='', timeout=None, ele_only=True): method nexts (line 101) | def nexts(self, locator='', timeout=None, ele_only=True): method befores (line 104) | def befores(self, locator='', timeout=None, ele_only=True): method afters (line 107) | def afters(self, locator='', timeout=None, ele_only=True): method attr (line 110) | def attr(self, name): method ele (line 137) | def ele(self, locator, index=1, timeout=None): method eles (line 140) | def eles(self, locator, timeout=None): method s_ele (line 143) | def s_ele(self, locator=None, index=1): method s_eles (line 146) | def s_eles(self, locator): method _find_elements (line 149) | def _find_elements(self, locator, timeout, index=1, relative=False, ra... method _get_ele_path (line 152) | def _get_ele_path(self, xpath=True): function make_session_ele (line 169) | def make_session_ele(html_or_ele, loc=None, index=1, method=None): FILE: DrissionPage/_elements/session_element.pyi class SessionElement (line 20) | class SessionElement(DrissionElement): method __init__ (line 23) | def __init__(self, ele: HtmlElement, owner: Union[SessionPage, None] =... method __call__ (line 28) | def __call__(self, method __repr__ (line 41) | def __repr__(self) -> str: ... method __eq__ (line 43) | def __eq__(self, other: SessionElement) -> bool: ... method inner_ele (line 46) | def inner_ele(self) -> HtmlElement: ... method tag (line 49) | def tag(self) -> str: method html (line 54) | def html(self) -> str: method inner_html (line 59) | def inner_html(self) -> str: method attrs (line 64) | def attrs(self) -> dict: method text (line 69) | def text(self) -> str: method raw_text (line 74) | def raw_text(self) -> str: method parent (line 78) | def parent(self, method child (line 90) | def child(self, method prev (line 104) | def prev(self, method next (line 118) | def next(self, method before (line 132) | def before(self, method after (line 147) | def after(self, method children (line 162) | def children(self, method prevs (line 174) | def prevs(self, method nexts (line 186) | def nexts(self, method befores (line 198) | def befores(self, method afters (line 211) | def afters(self, method attr (line 224) | def attr(self, name: str) -> Optional[str]: method ele (line 231) | def ele(self, method eles (line 243) | def eles(self, method s_ele (line 253) | def s_ele(self, method s_eles (line 263) | def s_eles(self, locator: Union[Tuple[str, str], str]) -> SessionEleme... method _find_elements (line 270) | def _find_elements(self, method _get_ele_path (line 286) | def _get_ele_path(self, xpath: bool = True) -> str: function make_session_ele (line 294) | def make_session_ele(html_or_ele: Union[str, SessionElement, SessionPage... FILE: DrissionPage/_functions/browser.py function connect_browser (line 24) | def connect_browser(option): function get_launch_args (line 62) | def get_launch_args(opt): function set_prefs (line 106) | def set_prefs(opt): function set_flags (line 144) | def set_flags(opt): function test_connect (line 176) | def test_connect(ip, port): function _run_browser (line 197) | def _run_browser(port, path: str, args) -> Popen: function _make_leave_in_dict (line 214) | def _make_leave_in_dict(target_dict: dict, src: list, num: int, end: int... function _set_value_to_dict (line 230) | def _set_value_to_dict(target_dict: dict, src: list, value) -> None: function _remove_arg_from_dict (line 242) | def _remove_arg_from_dict(target_dict: dict, arg: str) -> None: function get_chrome_path (line 261) | def get_chrome_path(ini_path): FILE: DrissionPage/_functions/browser.pyi function connect_browser (line 13) | def connect_browser(option: ChromiumOptions) -> bool: function get_launch_args (line 21) | def get_launch_args(opt: ChromiumOptions) -> list: function set_prefs (line 29) | def set_prefs(opt: ChromiumOptions) -> None: function set_flags (line 37) | def set_flags(opt: ChromiumOptions) -> None: function test_connect (line 45) | def test_connect(ip: str, port: Union[int, str], timeout: float = 30) ->... function get_chrome_path (line 55) | def get_chrome_path(ini_path: str) -> Union[str, None]: FILE: DrissionPage/_functions/by.py class By (line 10) | class By: FILE: DrissionPage/_functions/cli.py function main (line 20) | def main(set_browser_path, set_user_path, configs_to_here, launch_browser): function set_paths (line 35) | def set_paths(browser_path=None, user_data_path=None): FILE: DrissionPage/_functions/cookies.py function cookie_to_dict (line 16) | def cookie_to_dict(cookie): function cookies_to_tuple (line 45) | def cookies_to_tuple(cookies): function set_session_cookies (line 72) | def set_session_cookies(session, cookies): function set_browser_cookies (line 87) | def set_browser_cookies(browser, cookies): function set_tab_cookies (line 96) | def set_tab_cookies(page, cookies): function is_cookie_in_driver (line 138) | def is_cookie_in_driver(page, cookie): function format_cookie (line 151) | def format_cookie(cookie): class CookiesList (line 210) | class CookiesList(list): method as_dict (line 211) | def as_dict(self): method as_str (line 214) | def as_str(self): method as_json (line 217) | def as_json(self): function _dict_cookies_to_tuple (line 222) | def _dict_cookies_to_tuple(cookies: dict): FILE: DrissionPage/_functions/cookies.pyi function cookie_to_dict (line 18) | def cookie_to_dict(cookie: Union[Cookie, str, dict]) -> dict: function cookies_to_tuple (line 26) | def cookies_to_tuple(cookies: Union[RequestsCookieJar, list, tuple, str,... function set_session_cookies (line 34) | def set_session_cookies(session: Session, function set_browser_cookies (line 44) | def set_browser_cookies(browser: Chromium, function set_tab_cookies (line 54) | def set_tab_cookies(page: ChromiumBase, function is_cookie_in_driver (line 64) | def is_cookie_in_driver(page: ChromiumBase, cookie: dict) -> bool: function format_cookie (line 73) | def format_cookie(cookie: dict) -> dict: class CookiesList (line 81) | class CookiesList(list): method as_dict (line 82) | def as_dict(self) -> dict: method as_str (line 86) | def as_str(self) -> str: method as_json (line 90) | def as_json(self) -> str: method __next__ (line 94) | def __next__(self) -> dict: ... FILE: DrissionPage/_functions/elements.py class SessionElementsList (line 16) | class SessionElementsList(list): method __init__ (line 17) | def __init__(self, owner=None, *args): method __getitem__ (line 21) | def __getitem__(self, item): method get (line 31) | def get(self): method filter (line 35) | def filter(self): method filter_one (line 39) | def filter_one(self): class ChromiumElementsList (line 43) | class ChromiumElementsList(SessionElementsList): method filter (line 46) | def filter(self): method filter_one (line 50) | def filter_one(self): method search (line 53) | def search(self, displayed=None, checked=None, selected=None, enabled=... method search_one (line 58) | def search_one(self, index=1, displayed=None, checked=None, selected=N... class SessionFilterOne (line 64) | class SessionFilterOne(object): method __init__ (line 65) | def __init__(self, _list): method __call__ (line 69) | def __call__(self, index=1): method tag (line 73) | def tag(self, name, equal=True): method attr (line 90) | def attr(self, name, value, equal=True): method text (line 93) | def text(self, text, fuzzy=True, contain=True): method _get_attr (line 112) | def _get_attr(self, name, value, method, equal=True): class SessionFilter (line 130) | class SessionFilter(SessionFilterOne): method __iter__ (line 132) | def __iter__(self): method __next__ (line 135) | def __next__(self): method __len__ (line 138) | def __len__(self): method __getitem__ (line 141) | def __getitem__(self, item): method get (line 145) | def get(self): method tag (line 148) | def tag(self, name, equal=True): method text (line 152) | def text(self, text, fuzzy=True, contain=True): method _get_attr (line 157) | def _get_attr(self, name, value, method, equal=True): class ChromiumFilterOne (line 163) | class ChromiumFilterOne(SessionFilterOne): method displayed (line 165) | def displayed(self, equal=True): method checked (line 168) | def checked(self, equal=True): method selected (line 171) | def selected(self, equal=True): method enabled (line 174) | def enabled(self, equal=True): method clickable (line 177) | def clickable(self, equal=True): method have_rect (line 180) | def have_rect(self, equal=True): method style (line 183) | def style(self, name, value, equal=True): method property (line 186) | def property(self, name, value, equal=True): method _any_state (line 189) | def _any_state(self, name, equal=True): class ChromiumFilter (line 206) | class ChromiumFilter(ChromiumFilterOne): method __iter__ (line 208) | def __iter__(self): method __next__ (line 211) | def __next__(self): method __len__ (line 214) | def __len__(self): method __getitem__ (line 217) | def __getitem__(self, item): method get (line 221) | def get(self): method search_one (line 224) | def search_one(self, index=1, displayed=None, checked=None, selected=N... method search (line 229) | def search(self, displayed=None, checked=None, selected=None, enabled=... method tag (line 234) | def tag(self, name, equal=True): method text (line 238) | def text(self, text, fuzzy=True, contain=True): method _get_attr (line 243) | def _get_attr(self, name, value, method, equal=True): method _any_state (line 248) | def _any_state(self, name, equal=True): class Getter (line 262) | class Getter(object): method __init__ (line 263) | def __init__(self, _list): method links (line 266) | def links(self): method texts (line 269) | def texts(self): method attrs (line 272) | def attrs(self, name): function get_eles (line 276) | def get_eles(locators, owner, any_one=False, first_ele=True, timeout=10): function get_frame (line 305) | def get_frame(owner, loc_ind_ele, timeout=None): function _attr_all (line 341) | def _attr_all(src_list, aim_list, name, value, method, equal=True): function _tag_all (line 353) | def _tag_all(src_list, aim_list, name, equal=True): function _text_all (line 366) | def _text_all(src_list, aim_list, text, fuzzy=True, contain=True): function _search (line 386) | def _search(_list, displayed=None, checked=None, selected=None, enabled=... function _search_one (line 421) | def _search_one(_list, index=1, displayed=None, checked=None, selected=N... FILE: DrissionPage/_functions/elements.pyi class SessionElementsList (line 18) | class SessionElementsList(list): method __init__ (line 21) | def __init__(self, method __next__ (line 30) | def __next__(self) -> SessionElement: ... method __getitem__ (line 32) | def __getitem__(self, _i) -> Union[SessionElement, SessionElementsList... method __iter__ (line 34) | def __iter__(self) -> List[SessionElement]: ... method get (line 37) | def get(self) -> Getter: method filter (line 42) | def filter(self) -> SessionFilter: method filter_one (line 47) | def filter_one(self) -> SessionFilterOne: class ChromiumElementsList (line 52) | class ChromiumElementsList(SessionElementsList): method __init__ (line 55) | def __init__(self, method __next__ (line 64) | def __next__(self) -> ChromiumElement: ... method __getitem__ (line 66) | def __getitem__(self, _i) -> Union[ChromiumElement, ChromiumElementsLi... method __iter__ (line 68) | def __iter__(self) -> List[ChromiumElement]: ... method filter (line 71) | def filter(self) -> ChromiumFilter: method filter_one (line 76) | def filter_one(self) -> ChromiumFilterOne: method search (line 80) | def search(self, method search_one (line 102) | def search_one(self, class SessionFilterOne (line 127) | class SessionFilterOne(object): method __init__ (line 131) | def __init__(self, _list: SessionElementsList): method __call__ (line 137) | def __call__(self, index: int = 1) -> SessionFilterOne: method tag (line 144) | def tag(self, name: str, equal: bool = True) -> SessionElement: method attr (line 152) | def attr(self, name: str, value: str, equal: bool = True) -> SessionEl... method text (line 161) | def text(self, text: str, fuzzy: bool = True, contain: bool = True) ->... method _get_attr (line 170) | def _get_attr(self, class SessionFilter (line 184) | class SessionFilter(SessionFilterOne): method __iter__ (line 186) | def __iter__(self) -> Iterable[SessionElement]: ... method __next__ (line 188) | def __next__(self) -> SessionElement: ... method __len__ (line 190) | def __len__(self) -> int: ... method __getitem__ (line 192) | def __getitem__(self, item: int) -> SessionElement: ... method get (line 195) | def get(self) -> Getter: method tag (line 199) | def tag(self, name: str, equal: bool = True) -> SessionFilter: method attr (line 207) | def attr(self, name: str, value: str, equal: bool = True) -> SessionFi... method text (line 216) | def text(self, text: str, fuzzy: bool = True, contain: bool = True) ->... method _get_attr (line 225) | def _get_attr(self, class ChromiumFilterOne (line 239) | class ChromiumFilterOne(SessionFilterOne): method __init__ (line 242) | def __init__(self, _list: ChromiumElementsList): method __call__ (line 248) | def __call__(self, index: int = 1) -> ChromiumFilterOne: method tag (line 255) | def tag(self, name: str, equal: bool = True) -> SessionElement: method attr (line 263) | def attr(self, name: str, value: str, equal: bool = True) -> ChromiumE... method text (line 272) | def text(self, method displayed (line 284) | def displayed(self, equal: bool = True) -> ChromiumElement: method checked (line 291) | def checked(self, equal: bool = True) -> ChromiumElement: method selected (line 298) | def selected(self, equal: bool = True) -> ChromiumElement: method enabled (line 305) | def enabled(self, equal: bool = True) -> ChromiumElement: method clickable (line 312) | def clickable(self, equal: bool = True) -> ChromiumElement: method have_rect (line 319) | def have_rect(self, equal: bool = True) -> ChromiumElement: method style (line 326) | def style(self, name: str, value: str, equal: bool = True) -> Chromium... method property (line 335) | def property(self, method _get_attr (line 346) | def _get_attr(self, method _any_state (line 358) | def _any_state(self, name: str, equal: bool = True) -> ChromiumElement: class ChromiumFilter (line 367) | class ChromiumFilter(ChromiumFilterOne): method __iter__ (line 369) | def __iter__(self) -> Iterable[ChromiumElement]: ... method __next__ (line 371) | def __next__(self) -> ChromiumElement: ... method __len__ (line 373) | def __len__(self) -> int: ... method __getitem__ (line 375) | def __getitem__(self, item: int) -> ChromiumElement: ... method get (line 378) | def get(self) -> Getter: method tag (line 382) | def tag(self, name: str, equal: bool = True) -> ChromiumFilter: method attr (line 390) | def attr(self, name: str, value: str, equal: bool = True) -> ChromiumF... method text (line 399) | def text(self, text: str, fuzzy: bool = True, contain: bool = True) ->... method displayed (line 408) | def displayed(self, equal: bool = True) -> ChromiumFilter: method checked (line 415) | def checked(self, equal: bool = True) -> ChromiumFilter: method selected (line 422) | def selected(self, equal: bool = True) -> ChromiumFilter: method enabled (line 429) | def enabled(self, equal: bool = True) -> ChromiumFilter: method clickable (line 436) | def clickable(self, equal: bool = True) -> ChromiumFilter: method have_rect (line 443) | def have_rect(self, equal: bool = True) -> ChromiumFilter: method style (line 450) | def style(self, name: str, value: str, equal: bool = True) -> Chromium... method property (line 459) | def property(self, method search_one (line 470) | def search_one(self, method search (line 494) | def search(self, method _get_attr (line 516) | def _get_attr(self, method _any_state (line 528) | def _any_state(self, name: str, equal: bool = True) -> ChromiumFilter: class Getter (line 537) | class Getter(object): method __init__ (line 540) | def __init__(self, _list: SessionElementsList): method links (line 546) | def links(self) -> List[str]: method texts (line 550) | def texts(self) -> List[str]: method attrs (line 554) | def attrs(self, name: str) -> List[str]: function get_eles (line 562) | def get_eles(locators: Union[str, tuple, List[Union[str, tuple]]], function get_frame (line 579) | def get_frame(owner: BaseParser, FILE: DrissionPage/_functions/keys.py class Keys (line 16) | class Keys: function keys_to_typing (line 346) | def keys_to_typing(value): function make_input_data (line 364) | def make_input_data(modifiers, key, key_up=False): function send_key (line 411) | def send_key(page, modifier, key): function input_text_or_keys (line 422) | def input_text_or_keys(page, text_or_keys): FILE: DrissionPage/_functions/keys.pyi class Keys (line 13) | class Keys: function keys_to_typing (line 88) | def keys_to_typing(value: Union[str, int, list, tuple]) -> Tuple[int, str]: function make_input_data (line 94) | def make_input_data(modifiers: int, function send_key (line 106) | def send_key(page: ChromiumBase, modifier: int, key: str) -> None: function input_text_or_keys (line 116) | def input_text_or_keys(page: ChromiumBase, text_or_keys: Any) -> None: FILE: DrissionPage/_functions/locator.py function locator_to_tuple (line 15) | def locator_to_tuple(loc): function _get_args (line 54) | def _get_args(text: str = '') -> dict: function _get_arg (line 74) | def _get_arg(text) -> list: function is_str_loc (line 85) | def is_str_loc(text): function is_selenium_loc (line 90) | def is_selenium_loc(loc): function get_loc (line 96) | def get_loc(loc, translate_css=False, css_mode=False): function str_to_xpath_loc (line 118) | def str_to_xpath_loc(loc): function str_to_css_loc (line 169) | def str_to_css_loc(loc): function _make_single_xpath_str (line 209) | def _make_single_xpath_str(tag: str, text: str) -> tuple: function _make_multi_xpath_str (line 272) | def _make_multi_xpath_str(tag: str, text: str) -> tuple: function _quotes_escape (line 348) | def _quotes_escape(search_str: str) -> str: function _make_multi_css_str (line 368) | def _make_multi_css_str(tag: str, text: str) -> tuple: function _make_single_css_str (line 416) | def _make_single_css_str(tag: str, text: str) -> tuple: function translate_loc (line 439) | def translate_loc(loc): function translate_css_loc (line 477) | def translate_css_loc(loc): function css_trans (line 517) | def css_trans(txt): function _preprocess (line 523) | def _preprocess(loc): FILE: DrissionPage/_functions/locator.pyi function locator_to_tuple (line 11) | def locator_to_tuple(loc: str) -> dict: function is_str_loc (line 19) | def is_str_loc(text: str) -> bool: function is_selenium_loc (line 24) | def is_selenium_loc(loc: tuple) -> bool: function get_loc (line 29) | def get_loc(loc: Union[tuple, str], function str_to_xpath_loc (line 41) | def str_to_xpath_loc(loc: str) -> tuple: function str_to_css_loc (line 49) | def str_to_css_loc(loc: str) -> tuple: function translate_loc (line 57) | def translate_loc(loc: tuple) -> tuple: function translate_css_loc (line 65) | def translate_css_loc(loc: tuple) -> tuple: function css_trans (line 73) | def css_trans(txt: str) -> str: FILE: DrissionPage/_functions/settings.py class Settings (line 13) | class Settings(object): method set_raise_when_ele_not_found (line 25) | def set_raise_when_ele_not_found(cls, on_off=True): method set_raise_when_click_failed (line 30) | def set_raise_when_click_failed(cls, on_off=True): method set_raise_when_wait_failed (line 35) | def set_raise_when_wait_failed(cls, on_off=True): method set_singleton_tab_obj (line 40) | def set_singleton_tab_obj(cls, on_off=True): method set_cdp_timeout (line 45) | def set_cdp_timeout(cls, second): method set_browser_connect_timeout (line 50) | def set_browser_connect_timeout(cls, second): method set_auto_handle_alert (line 55) | def set_auto_handle_alert(cls, accept=True): method set_language (line 60) | def set_language(cls, code): method set_suffixes_list (line 65) | def set_suffixes_list(cls, path): FILE: DrissionPage/_functions/settings.pyi class Settings (line 14) | class Settings(object): method set_raise_when_ele_not_found (line 26) | def set_raise_when_ele_not_found(cls, on_off: bool = True) -> Settings: method set_raise_when_click_failed (line 34) | def set_raise_when_click_failed(cls, on_off: bool = True) -> Settings: method set_raise_when_wait_failed (line 42) | def set_raise_when_wait_failed(cls, on_off: bool = True) -> Settings: method set_singleton_tab_obj (line 50) | def set_singleton_tab_obj(cls, on_off: bool = True) -> Settings: method set_cdp_timeout (line 58) | def set_cdp_timeout(cls, second: float) -> Settings: method set_browser_connect_timeout (line 66) | def set_browser_connect_timeout(cls, second: float) -> Settings: method set_auto_handle_alert (line 74) | def set_auto_handle_alert(cls, accept: Optional[bool] = True) -> Setti... method set_language (line 82) | def set_language(cls, code: Literal['zh_cn', 'en']) -> Settings: method set_suffixes_list (line 90) | def set_suffixes_list(cls, path: Union[str, Path]) -> Settings: FILE: DrissionPage/_functions/texts.py function get_txt_class (line 13) | def get_txt_class(lang=None): class Texts (line 35) | class Texts(object): method get (line 208) | def get(cls, item): method join (line 212) | def join(cls, *args, **kwargs): class English (line 219) | class English(Texts): FILE: DrissionPage/_functions/tools.py class PortFinder (line 21) | class PortFinder(object): method __init__ (line 27) | def __init__(self, path=None): method get_port (line 37) | def get_port(self, scope=None): function port_is_using (line 63) | def port_is_using(ip, port): function clean_folder (line 72) | def clean_folder(folder_path, ignore=None): function show_or_hide_browser (line 84) | def show_or_hide_browser(tab, hide=True): function get_browser_progress_id (line 106) | def get_browser_progress_id(progress, address): function get_hwnds_from_pid (line 124) | def get_hwnds_from_pid(pid, title): function wait_until (line 144) | def wait_until(function, kwargs=None, timeout=10): function configs_to_here (line 156) | def configs_to_here(save_name=None): function raise_error (line 162) | def raise_error(result, browser, ignore=None, user=False): FILE: DrissionPage/_functions/tools.pyi class PortFinder (line 17) | class PortFinder(object): method __init__ (line 24) | def __init__(self, path: Union[str, Path] = None): method get_port (line 31) | def get_port(scope: Tuple[int, int] = None) -> Tuple[int, str]: function port_is_using (line 39) | def port_is_using(ip: str, port: Union[str, int]) -> bool: function clean_folder (line 48) | def clean_folder(folder_path: Union[str, Path], ignore: Union[tuple, lis... function show_or_hide_browser (line 57) | def show_or_hide_browser(tab: ChromiumBase, hide: bool = True) -> None: function get_browser_progress_id (line 66) | def get_browser_progress_id(progress: Union[popen, None], address: str) ... function get_hwnds_from_pid (line 75) | def get_hwnds_from_pid(pid: Union[str, int], title: str) -> list: function wait_until (line 84) | def wait_until(function: callable, kwargs: dict = None, timeout: float =... function configs_to_here (line 94) | def configs_to_here(save_name: Union[Path, str] = None) -> None: function raise_error (line 102) | def raise_error(result: dict, browser: Chromium, ignore=None, user: bool... FILE: DrissionPage/_functions/web.py function get_ele_txt (line 20) | def get_ele_txt(e): function format_html (line 106) | def format_html(text): function location_in_viewport (line 110) | def location_in_viewport(page, loc_x, loc_y): function offset_scroll (line 121) | def offset_scroll(ele, offset_x, offset_y): function make_absolute_link (line 137) | def make_absolute_link(link, baseURI=None): function is_js_func (line 160) | def is_js_func(func): function get_blob (line 169) | def get_blob(page, url, as_bytes=True): function save_page (line 198) | def save_page(tab, path=None, name=None, as_pdf=False, kwargs=None): function get_mhtml (line 221) | def get_mhtml(page, path=None, name=None): function get_pdf (line 234) | def get_pdf(page, path=None, name=None, kwargs=None): function tree (line 257) | def tree(ele_or_page, text=False, show_js=False, show_css=False): function format_headers (line 304) | def format_headers(txt): FILE: DrissionPage/_functions/web.pyi function get_ele_txt (line 18) | def get_ele_txt(e: DrissionElement) -> str: function format_html (line 26) | def format_html(text: str) -> str: function location_in_viewport (line 34) | def location_in_viewport(page: ChromiumBase, loc_x: float, loc_y: float)... function offset_scroll (line 44) | def offset_scroll(ele: ChromiumElement, offset_x: float, offset_y: float... function make_absolute_link (line 55) | def make_absolute_link(link: str, baseURI: str = None) -> str: function is_js_func (line 64) | def is_js_func(func: str) -> bool: function get_blob (line 69) | def get_blob(page: ChromiumBase, url: str, as_bytes: bool = True) -> bytes: function save_page (line 79) | def save_page(tab: Union[ChromiumPage, ChromiumTab], function get_mhtml (line 95) | def get_mhtml(page: Union[ChromiumPage, ChromiumTab], function get_pdf (line 107) | def get_pdf(page: Union[ChromiumPage, ChromiumTab], function tree (line 121) | def tree(ele_or_page: BaseParser, function format_headers (line 135) | def format_headers(txt: str) -> dict: FILE: DrissionPage/_pages/chromium_base.py class ChromiumBase (line 42) | class ChromiumBase(BasePage): method __init__ (line 43) | def __init__(self, browser, target_id=None): method __call__ (line 71) | def __call__(self, locator, index=1, timeout=None): method _d_set_runtime_settings (line 74) | def _d_set_runtime_settings(self): method _connect_browser (line 77) | def _connect_browser(self, target_id=None): method _driver_init (line 111) | def _driver_init(self, target_id): method _get_document (line 137) | def _get_document(self, timeout=10): method _onFrameDetached (line 173) | def _onFrameDetached(self, **kwargs): method _onFrameAttached (line 176) | def _onFrameAttached(self, **kwargs): method _onFrameStartedLoading (line 179) | def _onFrameStartedLoading(self, **kwargs): method _onFrameNavigated (line 191) | def _onFrameNavigated(self, **kwargs): method _onDomContentEventFired (line 199) | def _onDomContentEventFired(self, **kwargs): method _onLoadEventFired (line 206) | def _onLoadEventFired(self, **kwargs): method _onFrameStoppedLoading (line 211) | def _onFrameStoppedLoading(self, **kwargs): method _onFileChooserOpened (line 218) | def _onFileChooserOpened(self, **kwargs): method _wait_to_stop (line 229) | def _wait_to_stop(self): method wait (line 238) | def wait(self): method set (line 244) | def set(self): method screencast (line 250) | def screencast(self): method actions (line 256) | def actions(self): method listen (line 263) | def listen(self): method states (line 269) | def states(self): method scroll (line 275) | def scroll(self): method rect (line 282) | def rect(self): method console (line 289) | def console(self): method timeout (line 295) | def timeout(self): method timeouts (line 299) | def timeouts(self): method browser (line 305) | def browser(self): method driver (line 309) | def driver(self): method title (line 315) | def title(self): method url (line 319) | def url(self): method _browser_url (line 323) | def _browser_url(self): method html (line 327) | def html(self): method json (line 332) | def json(self): method tab_id (line 339) | def tab_id(self): method _target_id (line 343) | def _target_id(self): method active_ele (line 347) | def active_ele(self): method load_mode (line 351) | def load_mode(self): method user_agent (line 355) | def user_agent(self): method upload_list (line 359) | def upload_list(self): method session (line 363) | def session(self): method _js_ready_state (line 369) | def _js_ready_state(self): method run_cdp (line 377) | def run_cdp(self, cmd, **cmd_args): method run_cdp_loaded (line 381) | def run_cdp_loaded(self, cmd, **cmd_args): method _run_cdp (line 386) | def _run_cdp(self, cmd, **cmd_args): method _run_cdp_loaded (line 391) | def _run_cdp_loaded(self, cmd, **cmd_args): method run_js (line 395) | def run_js(self, script, *args, as_expr=False, timeout=None): method run_js_loaded (line 398) | def run_js_loaded(self, script, *args, as_expr=False, timeout=None): method _run_js (line 402) | def _run_js(self, script, *args, as_expr=False, timeout=None): method _run_js_loaded (line 405) | def _run_js_loaded(self, script, *args, as_expr=False, timeout=None): method run_async_js (line 409) | def run_async_js(self, script, *args, as_expr=False): method get (line 412) | def get(self, url, show_errmsg=False, retry=None, interval=None, timeo... method cookies (line 418) | def cookies(self, all_domains=False, all_info=False): method ele (line 429) | def ele(self, locator, index=1, timeout=None): method eles (line 432) | def eles(self, locator, timeout=None): method s_ele (line 435) | def s_ele(self, locator=None, index=1, timeout=None): method s_eles (line 442) | def s_eles(self, locator, timeout=None): method _find_elements (line 446) | def _find_elements(self, locator, timeout, index=1, relative=False, ra... method refresh (line 510) | def refresh(self, ignore_cache=False): method forward (line 515) | def forward(self, steps=1): method back (line 518) | def back(self, steps=1): method _forward_or_back (line 521) | def _forward_or_back(self, steps): method stop_loading (line 543) | def stop_loading(self): method remove_ele (line 554) | def remove_ele(self, loc_or_ele): method add_ele (line 561) | def add_ele(self, html_or_info, insert_to=None, before=None): method get_frame (line 616) | def get_frame(self, loc_ind_ele, timeout=None): method get_frames (line 619) | def get_frames(self, locator=None, timeout=None): method session_storage (line 624) | def session_storage(self, item=None): method local_storage (line 628) | def local_storage(self, item=None): method get_screenshot (line 632) | def get_screenshot(self, path=None, name=None, as_bytes=None, as_base6... method add_init_js (line 637) | def add_init_js(self, script): method remove_init_js (line 643) | def remove_init_js(self, script_id=None): method clear_cache (line 653) | def clear_cache(self, session_storage=True, local_storage=True, cache=... method disconnect (line 672) | def disconnect(self): method reconnect (line 679) | def reconnect(self, wait=0): method handle_alert (line 688) | def handle_alert(self, accept=True, send=None, timeout=None, next_one=... method _handle_alert (line 696) | def _handle_alert(self, accept=True, send=None, timeout=None, next_one... method _on_alert_open (line 719) | def _on_alert_open(self, **kwargs): method _on_alert_close (line 737) | def _on_alert_close(self, **kwargs): method _wait_loaded (line 746) | def _wait_loaded(self, timeout=None): method _d_connect (line 765) | def _d_connect(self, to_url, times=0, interval=1, show_errmsg=False, t... method _get_screenshot (line 813) | def _get_screenshot(self, path=None, name=None, as_bytes=None, as_base... class Timeout (line 893) | class Timeout(object): method __init__ (line 894) | def __init__(self, base=None, page_load=None, script=None): method __repr__ (line 899) | def __repr__(self): method as_dict (line 903) | def as_dict(self): class Alert (line 907) | class Alert(object): method __init__ (line 908) | def __init__(self, auto=None): function close_privacy_dialog (line 920) | def close_privacy_dialog(page, tid): FILE: DrissionPage/_pages/chromium_base.pyi class ChromiumBase (line 38) | class ChromiumBase(BasePage): method __init__ (line 72) | def __init__(self, method __call__ (line 81) | def __call__(self, method _d_set_runtime_settings (line 94) | def _d_set_runtime_settings(self) -> None: ... method _connect_browser (line 96) | def _connect_browser(self, target_id: str = None) -> None: method _driver_init (line 103) | def _driver_init(self, target_id: str) -> None: method _get_document (line 110) | def _get_document(self, timeout: float = 10) -> bool: method _onFrameDetached (line 117) | def _onFrameDetached(self, **kwargs) -> None: ... method _onFrameAttached (line 119) | def _onFrameAttached(self, **kwargs) -> None: ... method _onFrameStartedLoading (line 121) | def _onFrameStartedLoading(self, **kwargs): method _onFrameNavigated (line 125) | def _onFrameNavigated(self, **kwargs): method _onDomContentEventFired (line 129) | def _onDomContentEventFired(self, **kwargs): method _onLoadEventFired (line 133) | def _onLoadEventFired(self, **kwargs): method _onFrameStoppedLoading (line 137) | def _onFrameStoppedLoading(self, **kwargs): method _onFileChooserOpened (line 141) | def _onFileChooserOpened(self, **kwargs): method _wait_to_stop (line 145) | def _wait_to_stop(self): method wait (line 150) | def wait(self) -> BaseWaiter: method set (line 155) | def set(self) -> ChromiumBaseSetter: method screencast (line 160) | def screencast(self) -> Screencast: method actions (line 165) | def actions(self) -> Actions: method listen (line 170) | def listen(self) -> Listener: method states (line 175) | def states(self) -> PageStates: method scroll (line 180) | def scroll(self) -> PageScroller: method rect (line 185) | def rect(self) -> Union[TabRect, FrameRect]: method console (line 190) | def console(self) -> Console: method timeout (line 195) | def timeout(self) -> float: method timeouts (line 200) | def timeouts(self) -> Timeout: method browser (line 205) | def browser(self) -> Chromium: method driver (line 210) | def driver(self) -> Driver: method title (line 215) | def title(self) -> str: method url (line 220) | def url(self) -> str: method _browser_url (line 225) | def _browser_url(self) -> str: method html (line 230) | def html(self) -> str: method json (line 235) | def json(self) -> Union[dict, None]: method tab_id (line 240) | def tab_id(self) -> str: method _target_id (line 245) | def _target_id(self) -> str: method active_ele (line 250) | def active_ele(self) -> ChromiumElement: method load_mode (line 255) | def load_mode(self) -> Literal['none', 'normal', 'eager']: method user_agent (line 260) | def user_agent(self) -> str: method upload_list (line 265) | def upload_list(self) -> list: method session (line 270) | def session(self) -> Session: method _js_ready_state (line 275) | def _js_ready_state(self) -> str: method run_cdp (line 279) | def run_cdp(self, cmd: str, **cmd_args) -> dict: method run_cdp_loaded (line 287) | def run_cdp_loaded(self, cmd: str, **cmd_args) -> dict: method _run_cdp (line 295) | def _run_cdp(self, cmd: str, **cmd_args) -> dict: method _run_cdp_loaded (line 303) | def _run_cdp_loaded(self, cmd: str, **cmd_args) -> dict: method run_js (line 311) | def run_js(self, script: Union[str, Path], *args, as_expr: bool = Fals... method run_js_loaded (line 321) | def run_js_loaded(self, script: Union[str, Path], *args, as_expr: bool... method _run_js (line 331) | def _run_js(self, script: Union[str, Path], *args, as_expr: bool = Fal... method _run_js_loaded (line 341) | def _run_js_loaded(self, script: Union[str, Path], *args, as_expr: boo... method run_async_js (line 351) | def run_async_js(self, script: Union[str, Path], *args, as_expr: bool ... method get (line 360) | def get(self, url: str, show_errmsg: bool = False, retry: int = None, method cookies (line 372) | def cookies(self, all_domains: bool = False, all_info: bool = False) -... method ele (line 380) | def ele(self, method eles (line 392) | def eles(self, method s_ele (line 402) | def s_ele(self, method s_eles (line 414) | def s_eles(self, method _find_elements (line 424) | def _find_elements(self, method refresh (line 440) | def refresh(self, ignore_cache: bool = False) -> None: method forward (line 447) | def forward(self, steps: int = 1) -> None: method back (line 454) | def back(self, steps: int = 1) -> None: method _forward_or_back (line 461) | def _forward_or_back(self, steps: int) -> None: method stop_loading (line 468) | def stop_loading(self) -> None: method remove_ele (line 472) | def remove_ele(self, loc_or_ele: Union[ChromiumElement, ChromiumFrame,... method add_ele (line 479) | def add_ele(self, method get_frame (line 492) | def get_frame(self, method get_frames (line 502) | def get_frames(self, method session_storage (line 512) | def session_storage(self, item: str = None) -> Union[str, dict, None]: method local_storage (line 519) | def local_storage(self, item: str = None) -> Union[str, dict, None]: method get_screenshot (line 526) | def get_screenshot(self, path: [str, Path] = None, name: str = None, a... method add_init_js (line 541) | def add_init_js(self, script: str) -> str: method remove_init_js (line 548) | def remove_init_js(self, script_id: str = None) -> None: method clear_cache (line 555) | def clear_cache(self, session_storage: bool = True, local_storage: boo... method disconnect (line 566) | def disconnect(self) -> None: method reconnect (line 570) | def reconnect(self, wait: float = 0) -> None: method handle_alert (line 577) | def handle_alert(self, method _handle_alert (line 591) | def _handle_alert(self, method _on_alert_open (line 605) | def _on_alert_open(self, **kwargs): method _on_alert_close (line 609) | def _on_alert_close(self, **kwargs): method _wait_loaded (line 613) | def _wait_loaded(self, timeout: float = None) -> bool: method _d_connect (line 620) | def _d_connect(self, to_url: str, times: int = 0, interval: float = 1,... method _get_screenshot (line 632) | def _get_screenshot(self, path: [str, Path] = None, name: str = None, ... class Timeout (line 649) | class Timeout(object): method __init__ (line 655) | def __init__(self, base=None, page_load=None, script=None): method as_dict (line 664) | def as_dict(self) -> dict: class Alert (line 669) | class Alert(object): method __init__ (line 681) | def __init__(self, auto: bool = None): ... FILE: DrissionPage/_pages/chromium_frame.py class ChromiumFrame (line 24) | class ChromiumFrame(ChromiumBase): method __new__ (line 27) | def __new__(cls, owner, ele, info=None): method __init__ (line 39) | def __init__(self, owner, ele, info=None): method __call__ (line 70) | def __call__(self, locator, index=1, timeout=None): method __repr__ (line 73) | def __repr__(self): method __eq__ (line 77) | def __eq__(self, other): method _d_set_runtime_settings (line 80) | def _d_set_runtime_settings(self): method _driver_init (line 89) | def _driver_init(self, target_id, is_init=True): method _reload (line 100) | def _reload(self): method _get_document (line 143) | def _get_document(self, timeout=10): method _onInspectorDetached (line 173) | def _onInspectorDetached(self, **kwargs): method _onFrameDetached (line 177) | def _onFrameDetached(self, **kwargs): method scroll (line 186) | def scroll(self): method set (line 193) | def set(self): method states (line 199) | def states(self): method wait (line 205) | def wait(self): method rect (line 211) | def rect(self): method listen (line 217) | def listen(self): method _obj_id (line 225) | def _obj_id(self): method _node_id (line 229) | def _node_id(self): method owner (line 233) | def owner(self): method frame_ele (line 237) | def frame_ele(self): method tag (line 241) | def tag(self): method url (line 245) | def url(self): method html (line 252) | def html(self): method inner_html (line 259) | def inner_html(self): method link (line 263) | def link(self): method title (line 267) | def title(self): method attrs (line 272) | def attrs(self): method active_ele (line 276) | def active_ele(self): method xpath (line 280) | def xpath(self): method css_path (line 284) | def css_path(self): method tab (line 288) | def tab(self): method tab_id (line 292) | def tab_id(self): method download_path (line 296) | def download_path(self): method sr (line 300) | def sr(self): method shadow_root (line 304) | def shadow_root(self): method child_count (line 308) | def child_count(self): method _js_ready_state (line 312) | def _js_ready_state(self): method refresh (line 327) | def refresh(self): method property (line 330) | def property(self, name): method attr (line 333) | def attr(self, name): method remove_attr (line 336) | def remove_attr(self, name): method style (line 339) | def style(self, style, pseudo_ele=''): method run_js (line 342) | def run_js(self, script, *args, as_expr=False, timeout=None): method _run_js (line 345) | def _run_js(self, script, *args, as_expr=False, timeout=None): method parent (line 351) | def parent(self, level_or_loc=1, index=1, timeout=0): method prev (line 354) | def prev(self, locator='', index=1, timeout=0, ele_only=True): method next (line 357) | def next(self, locator='', index=1, timeout=0, ele_only=True): method before (line 360) | def before(self, locator='', index=1, timeout=None, ele_only=True): method after (line 363) | def after(self, locator='', index=1, timeout=None, ele_only=True): method prevs (line 366) | def prevs(self, locator='', timeout=0, ele_only=True): method nexts (line 369) | def nexts(self, locator='', timeout=0, ele_only=True): method befores (line 372) | def befores(self, locator='', timeout=None, ele_only=True): method afters (line 375) | def afters(self, locator='', timeout=None, ele_only=True): method get_screenshot (line 378) | def get_screenshot(self, path=None, name=None, as_bytes=None, as_base6... method _get_screenshot (line 381) | def _get_screenshot(self, path=None, name=None, as_bytes: [bool, str] ... method _find_elements (line 449) | def _find_elements(self, locator, timeout, index=1, relative=False, ra... method _is_inner_frame (line 456) | def _is_inner_frame(self): FILE: DrissionPage/_pages/chromium_frame.pyi class ChromiumFrame (line 24) | class ChromiumFrame(ChromiumBase): method __init__ (line 39) | def __init__(self, method __call__ (line 50) | def __call__(self, method __repr__ (line 62) | def __repr__(self) -> str: ... method __eq__ (line 64) | def __eq__(self, other: ChromiumFrame) -> bool: ... method _d_set_runtime_settings (line 66) | def _d_set_runtime_settings(self) -> None: method _driver_init (line 70) | def _driver_init(self, target_id: str, is_init: bool = True) -> None: method _reload (line 77) | def _reload(self) -> None: method _get_document (line 81) | def _get_document(self, timeout: float = 10) -> bool: method _onFrameStoppedLoading (line 88) | def _onFrameStoppedLoading(self, **kwargs): ... method _onInspectorDetached (line 90) | def _onInspectorDetached(self, **kwargs): ... method scroll (line 93) | def scroll(self) -> FrameScroller: method set (line 98) | def set(self) -> ChromiumFrameSetter: method states (line 103) | def states(self) -> FrameStates: method wait (line 108) | def wait(self) -> FrameWaiter: method rect (line 113) | def rect(self) -> FrameRect: method listen (line 118) | def listen(self) -> FrameListener: method _obj_id (line 123) | def _obj_id(self) -> str: ... method _node_id (line 126) | def _node_id(self) -> int: ... method owner (line 129) | def owner(self) -> ChromiumBase: method frame_ele (line 134) | def frame_ele(self) -> ChromiumElement: method tag (line 139) | def tag(self) -> str: method url (line 144) | def url(self) -> str: method html (line 149) | def html(self) -> str: method inner_html (line 154) | def inner_html(self) -> str: method link (line 159) | def link(self) -> str: method title (line 164) | def title(self) -> str: method attrs (line 169) | def attrs(self) -> dict: method active_ele (line 174) | def active_ele(self) -> ChromiumElement: method xpath (line 179) | def xpath(self) -> str: method css_path (line 184) | def css_path(self) -> str: method tab (line 189) | def tab(self) -> Union[ChromiumTab, MixTab]: method tab_id (line 194) | def tab_id(self) -> str: method download_path (line 199) | def download_path(self) -> str: method sr (line 204) | def sr(self) -> Union[None, ShadowRoot]: method shadow_root (line 209) | def shadow_root(self) -> Union[None, ShadowRoot]: method child_count (line 214) | def child_count(self) -> int: method _js_ready_state (line 219) | def _js_ready_state(self) -> Literal['loading', 'interactive', 'comple... method refresh (line 223) | def refresh(self) -> None: method property (line 227) | def property(self, name: str) -> Union[str, None]: method attr (line 234) | def attr(self, name: str) -> Union[str, None]: method remove_attr (line 241) | def remove_attr(self, name: str) -> None: method style (line 248) | def style(self, style: str, pseudo_ele: str = '') -> str: method run_js (line 256) | def run_js(self, method _run_js (line 270) | def _run_js(self, method parent (line 284) | def parent(self, method prev (line 296) | def prev(self, method next (line 310) | def next(self, method before (line 324) | def before(self, method after (line 339) | def after(self, method prevs (line 354) | def prevs(self, method nexts (line 366) | def nexts(self, method befores (line 378) | def befores(self, method afters (line 391) | def afters(self, method get_screenshot (line 404) | def get_screenshot(self, method _get_screenshot (line 418) | def _get_screenshot(self, method _find_elements (line 440) | def _find_elements(self, method _is_inner_frame (line 456) | def _is_inner_frame(self) -> bool: FILE: DrissionPage/_pages/chromium_page.py class ChromiumPage (line 18) | class ChromiumPage(ChromiumBase): method __new__ (line 21) | def __new__(cls, addr_or_opts=None, tab_id=None, timeout=None): method __init__ (line 35) | def __init__(self, addr_or_opts=None, tab_id=None, timeout=None): method __repr__ (line 48) | def __repr__(self): method _d_set_runtime_settings (line 51) | def _d_set_runtime_settings(self): method set (line 61) | def set(self): method wait (line 67) | def wait(self): method browser (line 73) | def browser(self): method tabs_count (line 77) | def tabs_count(self): method tab_ids (line 81) | def tab_ids(self): method latest_tab (line 85) | def latest_tab(self): method process_id (line 89) | def process_id(self): method browser_version (line 93) | def browser_version(self): method address (line 97) | def address(self): method download_path (line 101) | def download_path(self): method save (line 104) | def save(self, path=None, name=None, as_pdf=False, **kwargs): method get_tab (line 107) | def get_tab(self, id_or_num=None, title=None, url=None, tab_type='page... method get_tabs (line 111) | def get_tabs(self, title=None, url=None, tab_type='page', as_id=False): method new_tab (line 114) | def new_tab(self, url=None, new_window=False, background=False, new_co... method activate_tab (line 118) | def activate_tab(self, id_ind_tab): method close (line 121) | def close(self): method close_tabs (line 124) | def close_tabs(self, tabs_or_ids, others=False): method quit (line 127) | def quit(self, timeout=5, force=True, del_data=False): method _on_disconnect (line 130) | def _on_disconnect(self): FILE: DrissionPage/_pages/chromium_page.pyi class ChromiumPage (line 20) | class ChromiumPage(ChromiumBase): method __new__ (line 28) | def __new__(cls, method __init__ (line 37) | def __init__(self, method set (line 47) | def set(self) -> ChromiumPageSetter: method wait (line 52) | def wait(self) -> ChromiumPageWaiter: method browser (line 57) | def browser(self) -> Chromium: method tabs_count (line 62) | def tabs_count(self) -> int: method tab_ids (line 67) | def tab_ids(self) -> List[str]: method latest_tab (line 72) | def latest_tab(self) -> Union[ChromiumTab, ChromiumPage, str]: method process_id (line 78) | def process_id(self) -> Optional[int]: method browser_version (line 83) | def browser_version(self) -> str: method address (line 88) | def address(self) -> str: method save (line 92) | def save(self, method get_tab (line 143) | def get_tab(self, method get_tabs (line 159) | def get_tabs(self, method new_tab (line 173) | def new_tab(self, method activate_tab (line 187) | def activate_tab(self, method close (line 195) | def close(self) -> None: method close_tabs (line 199) | def close_tabs(self, method quit (line 210) | def quit(self, method _on_disconnect (line 222) | def _on_disconnect(self) -> None: FILE: DrissionPage/_pages/chromium_tab.py class ChromiumTab (line 18) | class ChromiumTab(ChromiumBase): method __new__ (line 21) | def __new__(cls, browser, tab_id): method __init__ (line 31) | def __init__(self, browser, tab_id): method __repr__ (line 40) | def __repr__(self): method _d_set_runtime_settings (line 43) | def _d_set_runtime_settings(self): method close (line 53) | def close(self, others=False): method set (line 60) | def set(self): method wait (line 66) | def wait(self): method save (line 71) | def save(self, path=None, name=None, as_pdf=False, **kwargs): method _on_disconnect (line 74) | def _on_disconnect(self): FILE: DrissionPage/_pages/chromium_tab.pyi class ChromiumTab (line 18) | class ChromiumTab(ChromiumBase): method __new__ (line 24) | def __new__(cls, browser: Chromium, tab_id: str): method __init__ (line 31) | def __init__(self, browser: Chromium, tab_id: str): method _d_set_runtime_settings (line 38) | def _d_set_runtime_settings(self) -> None: method close (line 42) | def close(self, others: bool = False) -> None: method set (line 50) | def set(self) -> TabSetter: method wait (line 55) | def wait(self) -> TabWaiter: method save (line 59) | def save(self, method _on_disconnect (line 110) | def _on_disconnect(self): ... FILE: DrissionPage/_pages/mix_tab.py class MixTab (line 17) | class MixTab(SessionPage, ChromiumTab, BasePage): method __init__ (line 18) | def __init__(self, browser, tab_id): method __call__ (line 31) | def __call__(self, locator, index=1, timeout=None): method __repr__ (line 35) | def __repr__(self): method set (line 39) | def set(self): method url (line 45) | def url(self): method _browser_url (line 49) | def _browser_url(self): method title (line 53) | def title(self): method raw_data (line 57) | def raw_data(self): method html (line 61) | def html(self): method json (line 65) | def json(self): method response (line 69) | def response(self): method mode (line 73) | def mode(self): method user_agent (line 77) | def user_agent(self): method _session_url (line 81) | def _session_url(self): method timeout (line 85) | def timeout(self): method get (line 88) | def get(self, url, show_errmsg=False, retry=None, interval=None, timeo... method post (line 98) | def post(self, url, show_errmsg=False, retry=None, interval=None, time... method ele (line 108) | def ele(self, locator, index=1, timeout=None): method eles (line 112) | def eles(self, locator, timeout=None): method s_ele (line 115) | def s_ele(self, locator=None, index=1, timeout=None): method s_eles (line 119) | def s_eles(self, locator, timeout=None): method change_mode (line 123) | def change_mode(self, mode=None, go=True, copy_cookies=True): method cookies_to_session (line 162) | def cookies_to_session(self, copy_user_agent=True): method cookies_to_browser (line 172) | def cookies_to_browser(self): method cookies (line 177) | def cookies(self, all_domains=False, all_info=False): method close (line 181) | def close(self, others=False, session=False): method _find_elements (line 191) | def _find_elements(self, locator, timeout, index=1, relative=False, ra... method _set_session_options (line 195) | def _set_session_options(self, session_or_options=None): FILE: DrissionPage/_pages/mix_tab.pyi class MixTab (line 25) | class MixTab(SessionPage, ChromiumTab): method __init__ (line 30) | def __init__(self, browser: Chromium, tab_id: str): method __call__ (line 37) | def __call__(self, method set (line 51) | def set(self) -> MixTabSetter: method wait (line 56) | def wait(self) -> MixTabWaiter: method url (line 61) | def url(self) -> Union[str, None]: method _browser_url (line 66) | def _browser_url(self) -> Union[str, None]: method title (line 71) | def title(self) -> str: method raw_data (line 76) | def raw_data(self) -> Union[str, bytes]: method html (line 81) | def html(self) -> str: method json (line 86) | def json(self) -> dict: method response (line 91) | def response(self) -> Response: method mode (line 96) | def mode(self) -> Literal['s', 'd']: method user_agent (line 101) | def user_agent(self) -> str: method session (line 106) | def session(self) -> Session: method _session_url (line 111) | def _session_url(self) -> str: method timeout (line 116) | def timeout(self) -> float: method get (line 120) | def get(self, method post (line 162) | def post(self, method ele (line 204) | def ele(self, method eles (line 216) | def eles(self, method s_ele (line 226) | def s_ele(self, method s_eles (line 238) | def s_eles(self, locator: Union[Tuple[str, str], str], timeout: float ... method change_mode (line 246) | def change_mode(self, mode: str = None, go: bool = True, copy_cookies:... method cookies_to_session (line 257) | def cookies_to_session(self, copy_user_agent: bool = True) -> None: method cookies_to_browser (line 264) | def cookies_to_browser(self) -> None: method cookies (line 268) | def cookies(self, all_domains: bool = False, all_info: bool = False) -... method close (line 276) | def close(self, others: bool = False) -> None: method _find_elements (line 283) | def _find_elements(self, FILE: DrissionPage/_pages/session_page.py class SessionPage (line 25) | class SessionPage(BasePage): method __init__ (line 26) | def __init__(self, session_or_options=None, timeout=None): method __repr__ (line 40) | def __repr__(self): method _s_set_runtime_settings (line 43) | def _s_set_runtime_settings(self): method __call__ (line 49) | def __call__(self, locator, index=1, timeout=None): method title (line 54) | def title(self): method url (line 59) | def url(self): method _session_url (line 63) | def _session_url(self): method raw_data (line 67) | def raw_data(self): method html (line 71) | def html(self): method json (line 75) | def json(self): method user_agent (line 82) | def user_agent(self): method session (line 86) | def session(self): method response (line 90) | def response(self): method encoding (line 94) | def encoding(self): method set (line 98) | def set(self): method timeout (line 104) | def timeout(self): method get (line 107) | def get(self, url, show_errmsg=False, retry=None, interval=None, timeo... method post (line 128) | def post(self, url, show_errmsg=False, retry=None, interval=None, **kw... method ele (line 139) | def ele(self, locator, index=1, timeout=None): method eles (line 142) | def eles(self, locator, timeout=None): method s_ele (line 145) | def s_ele(self, locator=None, index=1): method s_eles (line 148) | def s_eles(self, locator): method _find_elements (line 151) | def _find_elements(self, locator, timeout, index=1, relative=True, rai... method cookies (line 154) | def cookies(self, all_domains=False, all_info=False): method close (line 178) | def close(self): method _s_connect (line 183) | def _s_connect(self, url, mode, show_errmsg=False, retry=None, interva... method _make_response (line 201) | def _make_response(self, url, mode='get', retry=None, interval=None, s... function check_headers (line 271) | def check_headers(kwargs, headers, arg): function set_charset (line 275) | def set_charset(response): FILE: DrissionPage/_pages/session_page.pyi class SessionPage (line 22) | class SessionPage(BasePage): method __init__ (line 35) | def __init__(self, session_or_options: Union[Session, SessionOptions] ... method _s_set_runtime_settings (line 41) | def _s_set_runtime_settings(self) -> None: method __call__ (line 45) | def __call__(self, method title (line 59) | def title(self) -> str: method url (line 64) | def url(self) -> str: method _session_url (line 69) | def _session_url(self) -> str: method raw_data (line 74) | def raw_data(self) -> Union[str, bytes]: method html (line 79) | def html(self) -> str: method json (line 84) | def json(self) -> Union[dict, None]: method user_agent (line 89) | def user_agent(self) -> str: method session (line 94) | def session(self) -> Session: method response (line 99) | def response(self) -> Response: method encoding (line 104) | def encoding(self) -> str: method set (line 109) | def set(self) -> SessionPageSetter: method timeout (line 114) | def timeout(self) -> float: method get (line 118) | def get(self, method post (line 160) | def post(self, method ele (line 202) | def ele(self, method eles (line 214) | def eles(self, method s_ele (line 224) | def s_ele(self, method s_eles (line 234) | def s_eles(self, locator: Union[Tuple[str, str], str]) -> SessionEleme... method _find_elements (line 241) | def _find_elements(self, method cookies (line 256) | def cookies(self, method close (line 266) | def close(self) -> None: method _s_connect (line 270) | def _s_connect(self, method _make_response (line 288) | def _make_response(self, function check_headers (line 305) | def check_headers(kwargs: Union[dict, CaseInsensitiveDict], function set_charset (line 317) | def set_charset(response: Response) -> Response: FILE: DrissionPage/_pages/web_page.py class WebPage (line 18) | class WebPage(SessionPage, ChromiumPage, BasePage): method __new__ (line 19) | def __new__(cls, mode='d', timeout=None, chromium_options=None, sessio... method __init__ (line 23) | def __init__(self, mode='d', timeout=None, chromium_options=None, sess... method __call__ (line 43) | def __call__(self, locator, index=1, timeout=None): method __repr__ (line 48) | def __repr__(self): method latest_tab (line 52) | def latest_tab(self): method set (line 56) | def set(self): method url (line 62) | def url(self): method _browser_url (line 66) | def _browser_url(self): method title (line 70) | def title(self): method raw_data (line 74) | def raw_data(self): method html (line 80) | def html(self): method json (line 86) | def json(self): method response (line 90) | def response(self): method mode (line 94) | def mode(self): method user_agent (line 98) | def user_agent(self): method session (line 102) | def session(self): method _session_url (line 108) | def _session_url(self): method timeout (line 112) | def timeout(self): method download_path (line 116) | def download_path(self): method get (line 119) | def get(self, url, show_errmsg=False, retry=None, interval=None, timeo... method post (line 127) | def post(self, url, show_errmsg=False, retry=None, interval=None, **kw... method ele (line 133) | def ele(self, locator, index=1, timeout=None): method eles (line 137) | def eles(self, locator, timeout=None): method s_ele (line 140) | def s_ele(self, locator=None, index=1, timeout=None): method s_eles (line 144) | def s_eles(self, locator, timeout=None): method change_mode (line 148) | def change_mode(self, mode=None, go=True, copy_cookies=True): method cookies_to_session (line 182) | def cookies_to_session(self, copy_user_agent=True): method cookies_to_browser (line 192) | def cookies_to_browser(self): method cookies (line 197) | def cookies(self, all_domains=False, all_info=False): method get_tab (line 201) | def get_tab(self, id_or_num=None, title=None, url=None, tab_type='page... method get_tabs (line 205) | def get_tabs(self, title=None, url=None, tab_type='page', as_id=False): method new_tab (line 208) | def new_tab(self, url=None, new_window=False, background=False, new_co... method close_driver (line 211) | def close_driver(self): method close_session (line 222) | def close_session(self): method close (line 232) | def close(self): method _find_elements (line 240) | def _find_elements(self, locator, timeout, index=1, relative=False, ra... method quit (line 245) | def quit(self, timeout=5, force=True, del_data=False): method _set_session_options (line 256) | def _set_session_options(self, session_or_options=None): FILE: DrissionPage/_pages/web_page.pyi class WebPage (line 28) | class WebPage(SessionPage, ChromiumPage, BasePage): method __init__ (line 37) | def __init__(self, method __call__ (line 48) | def __call__(self, method latest_tab (line 61) | def latest_tab(self) -> Union[MixTab, WebPage, str]: method set (line 67) | def set(self) -> WebPageSetter: method wait (line 72) | def wait(self) -> WebPageWaiter: method url (line 77) | def url(self) -> Union[str, None]: method _browser_url (line 82) | def _browser_url(self) -> Union[str, None]: method title (line 87) | def title(self) -> str: method raw_data (line 92) | def raw_data(self) -> Union[str, bytes]: method html (line 97) | def html(self) -> str: method json (line 102) | def json(self) -> dict: method response (line 107) | def response(self) -> Response: method mode (line 112) | def mode(self) -> Literal['s', 'd']: method user_agent (line 117) | def user_agent(self) -> str: method session (line 122) | def session(self) -> Session: method _session_url (line 127) | def _session_url(self) -> str: method timeout (line 132) | def timeout(self) -> float: method get (line 136) | def get(self, method post (line 178) | def post(self, method ele (line 220) | def ele(self, method eles (line 232) | def eles(self, method s_ele (line 242) | def s_ele(self, method s_eles (line 254) | def s_eles(self, locator: Union[Tuple[str, str], str], timeout: float ... method change_mode (line 262) | def change_mode(self, method cookies_to_session (line 276) | def cookies_to_session(self, copy_user_agent: bool = True) -> None: method cookies_to_browser (line 283) | def cookies_to_browser(self) -> None: method cookies (line 287) | def cookies(self, method get_tab (line 297) | def get_tab(self, method get_tabs (line 313) | def get_tabs(self, method new_tab (line 327) | def new_tab(self, method close_driver (line 341) | def close_driver(self) -> None: method close_session (line 345) | def close_session(self) -> None: method close (line 349) | def close(self) -> None: method _find_elements (line 353) | def _find_elements(self, method quit (line 370) | def quit(self, FILE: DrissionPage/_units/actions.py class Actions (line 16) | class Actions: method __init__ (line 18) | def __init__(self, owner): method move_to (line 26) | def move_to(self, ele_or_loc, offset_x=None, offset_y=None, duration=.5): method move (line 66) | def move(self, offset_x=0, offset_y=0, duration=.5): method click (line 86) | def click(self, on_ele=None, times=1): method r_click (line 90) | def r_click(self, on_ele=None, times=1): method m_click (line 94) | def m_click(self, on_ele=None, times=1): method hold (line 98) | def hold(self, on_ele=None): method release (line 102) | def release(self, on_ele=None): method r_hold (line 108) | def r_hold(self, on_ele=None): method r_release (line 112) | def r_release(self, on_ele=None): method m_hold (line 118) | def m_hold(self, on_ele=None): method m_release (line 122) | def m_release(self, on_ele=None): method _hold (line 128) | def _hold(self, on_ele=None, button='left', count=1): method _release (line 136) | def _release(self, button): method scroll (line 142) | def scroll(self, delta_y=0, delta_x=0, on_ele=None): method up (line 149) | def up(self, pixel): method down (line 152) | def down(self, pixel): method left (line 155) | def left(self, pixel): method right (line 158) | def right(self, pixel): method key_down (line 161) | def key_down(self, key): method key_up (line 173) | def key_up(self, key): method type (line 185) | def type(self, keys, interval=0): method input (line 209) | def input(self, text): method drag_in (line 213) | def drag_in(self, ele_or_loc, files=None, text=None, title=None, baseU... method wait (line 247) | def wait(self, second, scope=None): function location_to_client (line 252) | def location_to_client(page, lx, ly): FILE: DrissionPage/_units/actions.pyi class Actions (line 45) | class Actions: method __init__ (line 55) | def __init__(self, owner: ChromiumBase): method move_to (line 61) | def move_to(self, ele_or_loc: Union[ChromiumElement, Tuple[float, floa... method move (line 73) | def move(self, offset_x: float = 0, offset_y: float = 0, duration: flo... method click (line 82) | def click(self, on_ele: Union[ChromiumElement, str] = None, times: int... method r_click (line 90) | def r_click(self, on_ele: Union[ChromiumElement, str] = None, times: i... method m_click (line 98) | def m_click(self, on_ele: Union[ChromiumElement, str] = None, times: i... method hold (line 106) | def hold(self, on_ele: Union[ChromiumElement, str] = None) -> Actions: method release (line 113) | def release(self, on_ele: Union[ChromiumElement, str] = None) -> Actions: method r_hold (line 120) | def r_hold(self, on_ele: Union[ChromiumElement, str] = None) -> Actions: method r_release (line 127) | def r_release(self, on_ele: Union[ChromiumElement, str] = None) -> Act... method m_hold (line 134) | def m_hold(self, on_ele: Union[ChromiumElement, str] = None) -> Actions: method m_release (line 141) | def m_release(self, on_ele: Union[ChromiumElement, str] = None) -> Act... method _hold (line 148) | def _hold(self, method _release (line 160) | def _release(self, button: str) -> Actions: method scroll (line 167) | def scroll(self, delta_y: int = 0, delta_x: int = 0, method up (line 177) | def up(self, pixel: int) -> Actions: method down (line 184) | def down(self, pixel: int) -> Actions: method left (line 191) | def left(self, pixel: int) -> Actions: method right (line 198) | def right(self, pixel: int) -> Actions: method key_down (line 205) | def key_down(self, key: Union[KEYS, str]) -> Actions: method key_up (line 212) | def key_up(self, key: Union[KEYS, str]) -> Actions: method type (line 219) | def type(self, method input (line 229) | def input(self, text: Any) -> Actions: method drag_in (line 236) | def drag_in(self, ele_or_loc: Union[str, ChromiumElement], files: Unio... method wait (line 248) | def wait(self, second: float, scope: float = None) -> Actions: function location_to_client (line 257) | def location_to_client(page: ChromiumBase, lx: int, ly: int) -> tuple: FILE: DrissionPage/_units/clicker.py class Clicker (line 18) | class Clicker(object): method __init__ (line 19) | def __init__(self, ele): method __call__ (line 22) | def __call__(self, by_js=False, timeout=1.5, wait_stop=True): method left (line 25) | def left(self, by_js=False, timeout=1.5, wait_stop=True): method right (line 98) | def right(self): method middle (line 102) | def middle(self, get_tab=True): method at (line 112) | def at(self, offset_x=None, offset_y=None, button='left', count=1): method multi (line 120) | def multi(self, times=2): method to_download (line 123) | def to_download(self, save_path=None, rename=None, suffix=None, new_ta... method to_upload (line 177) | def to_upload(self, file_paths, by_js=False): method for_new_tab (line 182) | def for_new_tab(self, by_js=False, timeout=3): method for_url_change (line 190) | def for_url_change(self, text=None, exclude=False, by_js=False, timeou... method for_title_change (line 197) | def for_title_change(self, text=None, exclude=False, by_js=False, time... method _click (line 204) | def _click(self, view_x, view_y, button='left', count=1): FILE: DrissionPage/_units/clicker.pyi class Clicker (line 17) | class Clicker(object): method __init__ (line 20) | def __init__(self, ele: ChromiumElement): method __call__ (line 26) | def __call__(self, by_js: Union[bool, str, None] = False, method left (line 37) | def left(self, by_js: Union[bool, str, None] = False, method right (line 47) | def right(self) -> ChromiumElement: method middle (line 51) | def middle(self, get_tab: bool = True) -> Union[ChromiumTab, MixTab, N... method at (line 58) | def at(self, method multi (line 72) | def multi(self, times: int = 2) -> ChromiumElement: method to_download (line 79) | def to_download(self, method to_upload (line 97) | def to_upload(self, file_paths: Union[str, Path, list, tuple], by_js: ... method for_new_tab (line 105) | def for_new_tab(self, by_js: bool = False, timeout: float = 3) -> Unio... method for_url_change (line 113) | def for_url_change(self, text: str = None, exclude: bool = False, method for_title_change (line 124) | def for_title_change(self, text: str = None, exclude: bool = False, method _click (line 135) | def _click(self, FILE: DrissionPage/_units/console.py class Console (line 14) | class Console(object): method __init__ (line 15) | def __init__(self, owner): method messages (line 22) | def messages(self): method start (line 30) | def start(self): method stop (line 38) | def stop(self): method clear (line 43) | def clear(self): method wait (line 46) | def wait(self, timeout=None): method steps (line 62) | def steps(self, timeout=None): method _console (line 78) | def _console(self, **kwargs): class ConsoleData (line 82) | class ConsoleData(object): method __init__ (line 85) | def __init__(self, data): method __getattr__ (line 88) | def __getattr__(self, item): method __repr__ (line 91) | def __repr__(self): method body (line 96) | def body(self): FILE: DrissionPage/_units/console.pyi class Console (line 14) | class Console(object): method __init__ (line 20) | def __init__(self, owner: ChromiumBase) -> None: method messages (line 27) | def messages(self) -> List[ConsoleData]: method start (line 31) | def start(self) -> None: method stop (line 35) | def stop(self) -> None: method clear (line 39) | def clear(self) -> None: method wait (line 43) | def wait(self, timeout: float = None) -> Union[ConsoleData, False]: method steps (line 50) | def steps(self, timeout: Optional[float] = None) -> Iterable[ConsoleDa... method _console (line 57) | def _console(self, **kwargs) -> None: ... class ConsoleData (line 60) | class ConsoleData(object): method __init__ (line 63) | def __init__(self, data: dict) -> None: ... method __getattr__ (line 65) | def __getattr__(self, item: str) -> str: ... method body (line 68) | def body(self) -> Any: ... FILE: DrissionPage/_units/cookies_setter.py class BrowserCookiesSetter (line 12) | class BrowserCookiesSetter(object): method __init__ (line 13) | def __init__(self, owner): method __call__ (line 16) | def __call__(self, cookies): method clear (line 19) | def clear(self): class CookiesSetter (line 23) | class CookiesSetter(BrowserCookiesSetter): method __call__ (line 24) | def __call__(self, cookies): method remove (line 27) | def remove(self, name, url=None, domain=None, path=None): method clear (line 41) | def clear(self): class SessionCookiesSetter (line 45) | class SessionCookiesSetter(object): method __init__ (line 46) | def __init__(self, owner): method __call__ (line 49) | def __call__(self, cookies): method remove (line 52) | def remove(self, name): method clear (line 55) | def clear(self): class WebPageCookiesSetter (line 59) | class WebPageCookiesSetter(CookiesSetter): method __call__ (line 60) | def __call__(self, cookies): method remove (line 66) | def remove(self, name, url=None, domain=None, path=None): method clear (line 74) | def clear(self): class MixTabCookiesSetter (line 81) | class MixTabCookiesSetter(CookiesSetter): method __call__ (line 82) | def __call__(self, cookies): method remove (line 88) | def remove(self, name, url=None, domain=None, path=None): method clear (line 96) | def clear(self): FILE: DrissionPage/_units/cookies_setter.pyi class BrowserCookiesSetter (line 18) | class BrowserCookiesSetter(object): method __init__ (line 21) | def __init__(self, owner: Chromium): method __call__ (line 27) | def __call__(self, cookies: Union[CookieJar, Cookie, list, tuple, str,... method clear (line 34) | def clear(self) -> None: class CookiesSetter (line 39) | class CookiesSetter(BrowserCookiesSetter): method __init__ (line 42) | def __init__(self, owner: ChromiumBase): method __call__ (line 48) | def __call__(self, cookies: Union[CookieJar, Cookie, list, tuple, str,... method remove (line 55) | def remove(self, method clear (line 69) | def clear(self) -> None: class SessionCookiesSetter (line 74) | class SessionCookiesSetter(object): method __init__ (line 77) | def __init__(self, owner: SessionPage): method __call__ (line 83) | def __call__(self, cookies: Union[CookieJar, Cookie, list, tuple, str,... method remove (line 90) | def remove(self, name: str) -> None: method clear (line 97) | def clear(self) -> None: class WebPageCookiesSetter (line 102) | class WebPageCookiesSetter(CookiesSetter, SessionCookiesSetter): method __init__ (line 105) | def __init__(self, owner: WebPage): method __call__ (line 111) | def __call__(self, cookies: Union[CookieJar, Cookie, list, tuple, str,... method remove (line 118) | def remove(self, method clear (line 132) | def clear(self) -> None: class MixTabCookiesSetter (line 137) | class MixTabCookiesSetter(CookiesSetter, SessionCookiesSetter): method __init__ (line 140) | def __init__(self, owner: MixTab): method __call__ (line 146) | def __call__(self, cookies: Union[CookieJar, Cookie, list, tuple, str,... method remove (line 153) | def remove(self, method clear (line 167) | def clear(self) -> None: FILE: DrissionPage/_units/downloader.py class DownloadManager (line 18) | class DownloadManager(object): method __init__ (line 20) | def __init__(self, browser): method missions (line 39) | def missions(self): method set_path (line 42) | def set_path(self, tab, path): method set_rename (line 56) | def set_rename(tab_id, rename=None, suffix=None): method set_file_exists (line 62) | def set_file_exists(tab_id, mode): method set_flag (line 65) | def set_flag(self, tab_id, flag): method get_flag (line 68) | def get_flag(self, tab_id): method get_tab_missions (line 71) | def get_tab_missions(self, tab_id): method set_done (line 74) | def set_done(self, mission, state, final_path=None): method cancel (line 86) | def cancel(self, mission): method skip (line 95) | def skip(self, mission): method clear_tab_info (line 102) | def clear_tab_info(self, tab_id): method _onDownloadWillBegin (line 108) | def _onDownloadWillBegin(self, **kwargs): method _onDownloadProgress (line 170) | def _onDownloadProgress(self, **kwargs): class TabDownloadSettings (line 207) | class TabDownloadSettings(object): method __new__ (line 210) | def __new__(cls, tab_id): method __init__ (line 218) | def __init__(self, tab_id): class DownloadMission (line 231) | class DownloadMission(object): method __init__ (line 232) | def __init__(self, mgr, tab_id, _id, folder, name, url, tmp_path, over... method __repr__ (line 248) | def __repr__(self): method rate (line 252) | def rate(self): method is_done (line 256) | def is_done(self): method cancel (line 259) | def cancel(self): method wait (line 262) | def wait(self, show=True, timeout=None, cancel_if_timeout=True): FILE: DrissionPage/_units/downloader.pyi class DownloadManager (line 16) | class DownloadManager(object): method __init__ (line 26) | def __init__(self, browser: Chromium): method missions (line 33) | def missions(self) -> Dict[str, DownloadMission]: method set_path (line 37) | def set_path(self, tab: Union[str, ChromiumBase], path: str) -> None: method set_rename (line 46) | def set_rename(tab_id: str, method set_file_exists (line 58) | def set_file_exists(tab_id: str, mode: FILE_EXISTS) -> None: method set_flag (line 66) | def set_flag(self, tab_id: str, flag: Union[bool, DownloadMission, Non... method get_flag (line 74) | def get_flag(self, tab_id: str) -> Union[bool, DownloadMission, None]: method get_tab_missions (line 81) | def get_tab_missions(self, tab_id: str) -> list: method set_done (line 88) | def set_done(self, method cancel (line 100) | def cancel(self, mission: DownloadMission) -> None: method skip (line 107) | def skip(self, mission: DownloadMission) -> None: method clear_tab_info (line 114) | def clear_tab_info(self, tab_id: str) -> None: method _onDownloadWillBegin (line 121) | def _onDownloadWillBegin(self, **kwargs) -> None: method _onDownloadProgress (line 125) | def _onDownloadProgress(self, **kwargs) -> None: class TabDownloadSettings (line 130) | class TabDownloadSettings(object): method __init__ (line 139) | def __init__(self, tab_id: str): class DownloadMission (line 146) | class DownloadMission(object): method __init__ (line 162) | def __init__(self, method rate (line 184) | def rate(self) -> float: method is_done (line 189) | def is_done(self) -> bool: method cancel (line 193) | def cancel(self) -> None: method wait (line 197) | def wait(self, FILE: DrissionPage/_units/listener.py class Listener (line 21) | class Listener(object): method __init__ (line 24) | def __init__(self, owner): method targets (line 45) | def targets(self): method set_targets (line 49) | def set_targets(self, targets=True, is_regex=False, method=('GET', 'PO... method start (line 84) | def start(self, targets=None, is_regex=None, method=None, res_type=None): method wait (line 102) | def wait(self, count=1, timeout=None, fit_count=True, raise_err=None): method steps (line 135) | def steps(self, count=None, timeout=None, gap=1): method stop (line 162) | def stop(self): method pause (line 169) | def pause(self, clear=True): method resume (line 179) | def resume(self): method clear (line 185) | def clear(self): method wait_silent (line 192) | def wait_silent(self, timeout=None, targets_only=False, limit=0): method _to_target (line 210) | def _to_target(self, target_id, address, owner): method _set_callback (line 223) | def _set_callback(self): method _requestWillBeSent (line 231) | def _requestWillBeSent(self, **kwargs): method _requestWillBeSentExtraInfo (line 259) | def _requestWillBeSentExtraInfo(self, **kwargs): method _response_received (line 263) | def _response_received(self, **kwargs): method _responseReceivedExtraInfo (line 269) | def _responseReceivedExtraInfo(self, **kwargs): method _loading_finished (line 283) | def _loading_finished(self, **kwargs): method _loading_failed (line 318) | def _loading_failed(self, **kwargs): class FrameListener (line 346) | class FrameListener(Listener): method _requestWillBeSent (line 347) | def _requestWillBeSent(self, **kwargs): method _response_received (line 352) | def _response_received(self, **kwargs): class DataPacket (line 358) | class DataPacket(object): method __init__ (line 360) | def __init__(self, tab_id, target): method __repr__ (line 380) | def __repr__(self): method _request_extra_info (line 385) | def _request_extra_info(self): method _response_extra_info (line 389) | def _response_extra_info(self): method url (line 393) | def url(self): method method (line 397) | def method(self): method frameId (line 401) | def frameId(self): method resourceType (line 405) | def resourceType(self): method request (line 409) | def request(self): method response (line 415) | def response(self): method fail_info (line 421) | def fail_info(self): method wait_extra_info (line 426) | def wait_extra_info(self, timeout=None): class Request (line 442) | class Request(object): method __init__ (line 443) | def __init__(self, data_packet, raw_request, post_data): method __getattr__ (line 450) | def __getattr__(self, item): method headers (line 454) | def headers(self): method params (line 465) | def params(self): method postData (line 470) | def postData(self): method cookies (line 485) | def cookies(self): method extra_info (line 489) | def extra_info(self): class Response (line 493) | class Response(object): method __init__ (line 494) | def __init__(self, data_packet, raw_response, raw_body, base64_body): method __getattr__ (line 502) | def __getattr__(self, item): method headers (line 506) | def headers(self): method raw_body (line 517) | def raw_body(self): method body (line 521) | def body(self): method extra_info (line 535) | def extra_info(self): class ExtraInfo (line 539) | class ExtraInfo(object): method __init__ (line 540) | def __init__(self, extra_info): method all_info (line 544) | def all_info(self): method __getattr__ (line 547) | def __getattr__(self, item): class RequestExtraInfo (line 551) | class RequestExtraInfo(ExtraInfo): class ResponseExtraInfo (line 555) | class ResponseExtraInfo(ExtraInfo): class FailInfo (line 559) | class FailInfo(object): method __init__ (line 560) | def __init__(self, data_packet, fail_info): method __getattr__ (line 564) | def __getattr__(self, item): FILE: DrissionPage/_units/listener.pyi class Listener (line 21) | class Listener(object): method __init__ (line 37) | def __init__(self, owner: ChromiumBase): method targets (line 44) | def targets(self) -> Optional[set]: ... method set_targets (line 46) | def set_targets(self, method start (line 62) | def start(self, method wait (line 78) | def wait(self, method steps (line 92) | def steps(self, method stop (line 104) | def stop(self) -> None: method pause (line 108) | def pause(self, clear: bool = True) -> None: method resume (line 115) | def resume(self) -> None: method clear (line 119) | def clear(self) -> None: method wait_silent (line 123) | def wait_silent(self, method _to_target (line 135) | def _to_target(self, target_id: str, address: str, owner: ChromiumBase... method _set_callback (line 144) | def _set_callback(self) -> None: ... method _requestWillBeSent (line 146) | def _requestWillBeSent(self, **kwargs) -> None: ... method _requestWillBeSentExtraInfo (line 148) | def _requestWillBeSentExtraInfo(self, **kwargs) -> None: ... method _response_received (line 150) | def _response_received(self, **kwargs) -> None: ... method _responseReceivedExtraInfo (line 152) | def _responseReceivedExtraInfo(self, **kwargs) -> None: ... method _loading_finished (line 154) | def _loading_finished(self, **kwargs) -> None: ... method _loading_failed (line 156) | def _loading_failed(self, **kwargs) -> None: ... class FrameListener (line 159) | class FrameListener(Listener): method __init__ (line 163) | def __init__(self, owner: ChromiumFrame): class DataPacket (line 170) | class DataPacket(object): method __init__ (line 189) | def __init__(self, tab_id: str, target: [str, bool]): method url (line 197) | def url(self) -> str: method method (line 202) | def method(self) -> str: method frameId (line 207) | def frameId(self) -> str: method resourceType (line 212) | def resourceType(self) -> str: method request (line 217) | def request(self) -> Request: method response (line 222) | def response(self) -> Response: method fail_info (line 227) | def fail_info(self) -> Optional[FailInfo]: method wait_extra_info (line 231) | def wait_extra_info(self, timeout: float = None) -> bool: method _request_extra_info (line 239) | def _request_extra_info(self) -> Optional[dict]: ... method _response_extra_info (line 242) | def _response_extra_info(self) -> Optional[dict]: ... class Request (line 245) | class Request(object): method __init__ (line 266) | def __init__(self, method headers (line 278) | def headers(self) -> dict: method params (line 283) | def params(self) -> dict: method postData (line 288) | def postData(self) -> Any: method cookies (line 293) | def cookies(self) -> List[dict]: method extra_info (line 298) | def extra_info(self) -> Optional[RequestExtraInfo]: class Response (line 303) | class Response(object): method __init__ (line 338) | def __init__(self, method headers (line 352) | def headers(self) -> CaseInsensitiveDict: method raw_body (line 357) | def raw_body(self) -> str: method body (line 362) | def body(self) -> Any: method extra_info (line 367) | def extra_info(self) -> Optional[ResponseExtraInfo]: class ExtraInfo (line 372) | class ExtraInfo(object): method __init__ (line 375) | def __init__(self, extra_info: dict): method all_info (line 382) | def all_info(self) -> dict: class RequestExtraInfo (line 387) | class RequestExtraInfo(ExtraInfo): class ResponseExtraInfo (line 396) | class ResponseExtraInfo(ExtraInfo): class FailInfo (line 407) | class FailInfo(object): method __init__ (line 415) | def __init__(self, data_packet: DataPacket, fail_info: dict): FILE: DrissionPage/_units/rect.py class ElementRect (line 10) | class ElementRect(object): method __init__ (line 11) | def __init__(self, ele): method corners (line 15) | def corners(self): method viewport_corners (line 23) | def viewport_corners(self): method size (line 28) | def size(self): method location (line 34) | def location(self): method midpoint (line 38) | def midpoint(self): method click_point (line 42) | def click_point(self): method viewport_location (line 46) | def viewport_location(self): method viewport_midpoint (line 51) | def viewport_midpoint(self): method viewport_click_point (line 56) | def viewport_click_point(self): method screen_location (line 61) | def screen_location(self): method screen_midpoint (line 72) | def screen_midpoint(self): method screen_click_point (line 83) | def screen_click_point(self): method scroll_position (line 94) | def scroll_position(self): method _get_viewport_rect (line 99) | def _get_viewport_rect(self, quad): method _get_page_coord (line 102) | def _get_page_coord(self, x, y): class TabRect (line 109) | class TabRect(object): method __init__ (line 110) | def __init__(self, owner): method window_state (line 114) | def window_state(self): method window_location (line 118) | def window_location(self): method window_size (line 125) | def window_size(self): method page_location (line 135) | def page_location(self): method viewport_location (line 141) | def viewport_location(self): method size (line 148) | def size(self): method viewport_size (line 153) | def viewport_size(self): method viewport_size_with_scrollbar (line 158) | def viewport_size_with_scrollbar(self): method scroll_position (line 164) | def scroll_position(self): method _get_page_rect (line 168) | def _get_page_rect(self): method _get_window_rect (line 171) | def _get_window_rect(self): class FrameRect (line 175) | class FrameRect(object): method __init__ (line 178) | def __init__(self, frame): method location (line 182) | def location(self): method viewport_location (line 186) | def viewport_location(self): method screen_location (line 190) | def screen_location(self): method size (line 194) | def size(self): method viewport_size (line 200) | def viewport_size(self): method corners (line 204) | def corners(self): method viewport_corners (line 208) | def viewport_corners(self): method scroll_position (line 212) | def scroll_position(self): FILE: DrissionPage/_units/rect.pyi class ElementRect (line 19) | class ElementRect(object): method __init__ (line 21) | def __init__(self, ele: ChromiumElement): method corners (line 28) | def corners(self) -> Tuple[Tuple[float, float], ...]: method viewport_corners (line 33) | def viewport_corners(self) -> Tuple[Tuple[float, float], ...]: method size (line 38) | def size(self) -> Tuple[float, float]: method location (line 43) | def location(self) -> Tuple[float, float]: method midpoint (line 48) | def midpoint(self) -> Tuple[float, float]: method click_point (line 53) | def click_point(self) -> Tuple[float, float]: method viewport_location (line 58) | def viewport_location(self) -> Tuple[float, float]: method viewport_midpoint (line 63) | def viewport_midpoint(self) -> Tuple[float, float]: method viewport_click_point (line 68) | def viewport_click_point(self) -> Tuple[float, float]: method screen_location (line 73) | def screen_location(self) -> Tuple[float, float]: method screen_midpoint (line 78) | def screen_midpoint(self) -> Tuple[float, float]: method screen_click_point (line 83) | def screen_click_point(self) -> Tuple[float, float]: method scroll_position (line 88) | def scroll_position(self) -> Tuple[float, float]: method _get_viewport_rect (line 92) | def _get_viewport_rect(self, quad: str) -> Union[list, None]: method _get_page_coord (line 99) | def _get_page_coord(self, x: float, y: float) -> Tuple[float, float]: class TabRect (line 108) | class TabRect(object): method __init__ (line 109) | def __init__(self, owner: ChromiumBase): method window_state (line 116) | def window_state(self) -> str: method window_location (line 121) | def window_location(self) -> Tuple[int, int]: method window_size (line 126) | def window_size(self) -> Tuple[int, int]: method page_location (line 131) | def page_location(self) -> Tuple[int, int]: method viewport_location (line 136) | def viewport_location(self) -> Tuple[int, int]: method size (line 141) | def size(self) -> Tuple[int, int]: method viewport_size (line 146) | def viewport_size(self) -> Tuple[int, int]: method viewport_size_with_scrollbar (line 151) | def viewport_size_with_scrollbar(self) -> Tuple[int, int]: method scroll_position (line 156) | def scroll_position(self) -> Tuple[int, int]: method _get_page_rect (line 160) | def _get_page_rect(self) -> dict: method _get_window_rect (line 164) | def _get_window_rect(self) -> dict: class FrameRect (line 169) | class FrameRect(object): method __init__ (line 172) | def __init__(self, frame: ChromiumFrame): method location (line 179) | def location(self) -> Tuple[float, float]: method viewport_location (line 184) | def viewport_location(self) -> Tuple[float, float]: method screen_location (line 189) | def screen_location(self) -> Tuple[float, float]: method size (line 194) | def size(self) -> Tuple[float, float]: method viewport_size (line 199) | def viewport_size(self) -> Tuple[float, float]: method corners (line 204) | def corners(self) -> Tuple[Tuple[float, float], ...]: method viewport_corners (line 209) | def viewport_corners(self) -> Tuple[Tuple[float, float], ...]: method scroll_position (line 214) | def scroll_position(self) -> Tuple[float, float]: FILE: DrissionPage/_units/screencast.py class Screencast (line 20) | class Screencast(object): method __init__ (line 21) | def __init__(self, owner): method set_mode (line 30) | def set_mode(self): method start (line 33) | def start(self, save_path=None): method stop (line 83) | def stop(self, video_name=None, suffix='mp4', coding='mp4v'): method set_save_path (line 139) | def set_save_path(self, save_path=None): method _run (line 147) | def _run(self): method _onScreencastFrame (line 155) | def _onScreencastFrame(self, **kwargs): class ScreencastMode (line 162) | class ScreencastMode(object): method __init__ (line 163) | def __init__(self, screencast): method video_mode (line 166) | def video_mode(self): method frugal_video_mode (line 169) | def frugal_video_mode(self): method js_video_mode (line 172) | def js_video_mode(self): method frugal_imgs_mode (line 175) | def frugal_imgs_mode(self): method imgs_mode (line 178) | def imgs_mode(self): FILE: DrissionPage/_units/screencast.pyi class Screencast (line 14) | class Screencast(object): method __init__ (line 22) | def __init__(self, owner: ChromiumBase): method set_mode (line 28) | def set_mode(self) -> ScreencastMode: method start (line 32) | def start(self, save_path: Union[str, Path] = None) -> None: method stop (line 39) | def stop(self, video_name: str = None, suffix: str='mp4', coding:str='... method set_save_path (line 48) | def set_save_path(self, save_path: Union[str, Path] = None) -> None: method _run (line 55) | def _run(self) -> None: method _onScreencastFrame (line 59) | def _onScreencastFrame(self, **kwargs) -> None: class ScreencastMode (line 64) | class ScreencastMode(object): method __init__ (line 67) | def __init__(self, screencast: Screencast): method video_mode (line 73) | def video_mode(self) -> None: method frugal_video_mode (line 77) | def frugal_video_mode(self) -> None: method js_video_mode (line 81) | def js_video_mode(self) -> None: method frugal_imgs_mode (line 85) | def frugal_imgs_mode(self) -> None: method imgs_mode (line 89) | def imgs_mode(self) -> None: FILE: DrissionPage/_units/scroller.py class Scroller (line 11) | class Scroller(object): method __init__ (line 14) | def __init__(self, owner): method __call__ (line 19) | def __call__(self, pixel=300): method _run_js (line 22) | def _run_js(self, js): method to_top (line 27) | def to_top(self): method to_bottom (line 31) | def to_bottom(self): method to_half (line 35) | def to_half(self): method to_rightmost (line 39) | def to_rightmost(self): method to_leftmost (line 43) | def to_leftmost(self): method to_location (line 47) | def to_location(self, x, y): method up (line 51) | def up(self, pixel=300): method down (line 56) | def down(self, pixel=300): method left (line 60) | def left(self, pixel=300): method right (line 65) | def right(self, pixel=300): method _wait_scrolled (line 69) | def _wait_scrolled(self): class ElementScroller (line 92) | class ElementScroller(Scroller): method to_see (line 93) | def to_see(self, center=None): method to_center (line 97) | def to_center(self): class PageScroller (line 102) | class PageScroller(Scroller): method __init__ (line 103) | def __init__(self, owner): method to_see (line 108) | def to_see(self, loc_or_ele, center=None): method _to_see (line 113) | def _to_see(self, ele, center): class FrameScroller (line 130) | class FrameScroller(PageScroller): method __init__ (line 131) | def __init__(self, owner): method to_see (line 138) | def to_see(self, loc_or_ele, center=None): FILE: DrissionPage/_units/scroller.pyi class Scroller (line 19) | class Scroller(object): method __init__ (line 25) | def __init__(self, owner: Union[ChromiumBase, ChromiumElement]): method __call__ (line 31) | def __call__(self, pixel: int = 300) -> None: method to_top (line 38) | def to_top(self) -> None: method to_bottom (line 42) | def to_bottom(self) -> None: method to_half (line 46) | def to_half(self) -> None: method to_rightmost (line 50) | def to_rightmost(self) -> None: method to_leftmost (line 54) | def to_leftmost(self) -> None: method to_location (line 58) | def to_location(self, x: int, y: int) -> None: method up (line 66) | def up(self, pixel: int = 300) -> None: method down (line 73) | def down(self, pixel: int = 300) -> None: method left (line 80) | def left(self, pixel: int = 300) -> None: method right (line 87) | def right(self, pixel: int = 300) -> None: method _run_js (line 94) | def _run_js(self, js: str): ... method _wait_scrolled (line 96) | def _wait_scrolled(self) -> None: class ElementScroller (line 101) | class ElementScroller(Scroller): method __init__ (line 104) | def __init__(self, owner: ChromiumElement): method to_see (line 110) | def to_see(self, center: Union[bool, None] = None) -> ChromiumElement: method to_center (line 117) | def to_center(self) -> ChromiumElement: method to_top (line 121) | def to_top(self) -> ChromiumElement: method to_bottom (line 125) | def to_bottom(self) -> ChromiumElement: method to_half (line 129) | def to_half(self) -> ChromiumElement: method to_rightmost (line 133) | def to_rightmost(self) -> ChromiumElement: method to_leftmost (line 137) | def to_leftmost(self) -> ChromiumElement: method to_location (line 141) | def to_location(self, x: int, y: int) -> ChromiumElement: method up (line 149) | def up(self, pixel: int = 300) -> ChromiumElement: method down (line 156) | def down(self, pixel: int = 300) -> ChromiumElement: method left (line 163) | def left(self, pixel: int = 300) -> ChromiumElement: method right (line 170) | def right(self, pixel: int = 300) -> ChromiumElement: class PageScroller (line 178) | class PageScroller(Scroller): method __init__ (line 181) | def __init__(self, owner: Union[ChromiumBase, ChromiumElement]): method to_see (line 187) | def to_see(self, method to_top (line 197) | def to_top(self) -> Union[ChromiumTab, MixTab, ChromiumPage, WebPage]: method to_bottom (line 201) | def to_bottom(self) -> Union[ChromiumTab, MixTab, ChromiumPage, WebPage]: method to_half (line 205) | def to_half(self) -> Union[ChromiumTab, MixTab, ChromiumPage, WebPage]: method to_rightmost (line 209) | def to_rightmost(self) -> Union[ChromiumTab, MixTab, ChromiumPage, Web... method to_leftmost (line 213) | def to_leftmost(self) -> Union[ChromiumTab, MixTab, ChromiumPage, WebP... method to_location (line 217) | def to_location(self, x: int, y: int) -> Union[ChromiumTab, MixTab, Ch... method up (line 225) | def up(self, pixel: int = 300) -> Union[ChromiumTab, MixTab, ChromiumP... method down (line 232) | def down(self, pixel: int = 300) -> Union[ChromiumTab, MixTab, Chromiu... method left (line 239) | def left(self, pixel: int = 300) -> Union[ChromiumTab, MixTab, Chromiu... method right (line 246) | def right(self, pixel: int = 300) -> Union[ChromiumTab, MixTab, Chromi... method _to_see (line 253) | def _to_see(self, ele: ChromiumElement, center: Union[bool, None]) -> ... class FrameScroller (line 262) | class FrameScroller(PageScroller): method __init__ (line 265) | def __init__(self, owner: ChromiumFrame): ... method to_see (line 267) | def to_see(self, method to_top (line 277) | def to_top(self) -> ChromiumFrame: method to_bottom (line 281) | def to_bottom(self) -> ChromiumFrame: method to_half (line 285) | def to_half(self) -> ChromiumFrame: method to_rightmost (line 289) | def to_rightmost(self) -> ChromiumFrame: method to_leftmost (line 293) | def to_leftmost(self) -> ChromiumFrame: method to_location (line 297) | def to_location(self, x: int, y: int) -> ChromiumFrame: method up (line 305) | def up(self, pixel: int = 300) -> ChromiumFrame: method down (line 312) | def down(self, pixel: int = 300) -> ChromiumFrame: method left (line 319) | def left(self, pixel: int = 300) -> ChromiumFrame: method right (line 326) | def right(self, pixel: int = 300) -> ChromiumFrame: FILE: DrissionPage/_units/selector.py class SelectElement (line 13) | class SelectElement(object): method __init__ (line 16) | def __init__(self, ele): method __call__ (line 21) | def __call__(self, text_or_index, timeout=None): method is_multi (line 28) | def is_multi(self): method options (line 32) | def options(self): method selected_option (line 36) | def selected_option(self): method selected_options (line 40) | def selected_options(self): method all (line 43) | def all(self): method invert (line 48) | def invert(self): method clear (line 60) | def clear(self): method by_text (line 65) | def by_text(self, text, timeout=None): method by_value (line 68) | def by_value(self, value, timeout=None): method by_index (line 71) | def by_index(self, index, timeout=None): method by_locator (line 74) | def by_locator(self, locator, timeout=None): method by_option (line 77) | def by_option(self, option): method cancel_by_text (line 80) | def cancel_by_text(self, text, timeout=None): method cancel_by_value (line 83) | def cancel_by_value(self, value, timeout=None): method cancel_by_index (line 86) | def cancel_by_index(self, index, timeout=None): method cancel_by_locator (line 89) | def cancel_by_locator(self, locator, timeout=None): method cancel_by_option (line 92) | def cancel_by_option(self, option): method _by_loc (line 95) | def _by_loc(self, loc, timeout=None, cancel=False): method _select (line 105) | def _select(self, condition, para_type='text', cancel=False, timeout=N... method _text_value (line 119) | def _text_value(self, condition, para_type, mode, timeout): method _index (line 135) | def _index(self, condition, mode, timeout): method _select_options (line 147) | def _select_options(self, option, mode): method _dispatch_change (line 159) | def _dispatch_change(self): FILE: DrissionPage/_units/selector.pyi class SelectElement (line 13) | class SelectElement(object): method __init__ (line 15) | def __init__(self, ele: ChromiumElement): method __call__ (line 21) | def __call__(self, method is_multi (line 32) | def is_multi(self) -> bool: method options (line 37) | def options(self) -> List[ChromiumElement]: method selected_option (line 42) | def selected_option(self) -> Optional[ChromiumElement]: method selected_options (line 47) | def selected_options(self) -> List[ChromiumElement]: method all (line 51) | def all(self) -> ChromiumElement: method invert (line 55) | def invert(self) -> ChromiumElement: method clear (line 59) | def clear(self) -> ChromiumElement: method by_text (line 63) | def by_text(self, method by_value (line 73) | def by_value(self, method by_index (line 83) | def by_index(self, method by_locator (line 93) | def by_locator(self, method by_option (line 103) | def by_option(self, method cancel_by_text (line 111) | def cancel_by_text(self, method cancel_by_value (line 121) | def cancel_by_value(self, method cancel_by_index (line 131) | def cancel_by_index(self, method cancel_by_locator (line 141) | def cancel_by_locator(self, method cancel_by_option (line 151) | def cancel_by_option(self, method _by_loc (line 160) | def _by_loc(self, method _select (line 172) | def _select(self, method _text_value (line 185) | def _text_value(self, method _index (line 199) | def _index(self, condition: set, mode: str, timeout: float) -> Chromiu... method _select_options (line 208) | def _select_options(self, method _dispatch_change (line 218) | def _dispatch_change(self) -> None: FILE: DrissionPage/_units/setter.py class BaseSetter (line 21) | class BaseSetter(object): method __init__ (line 22) | def __init__(self, owner): method NoneElement_value (line 25) | def NoneElement_value(self, value=None, on_off=True): method retry_times (line 29) | def retry_times(self, times): method retry_interval (line 32) | def retry_interval(self, interval): method download_path (line 35) | def download_path(self, path): class SessionPageSetter (line 41) | class SessionPageSetter(BaseSetter): method __init__ (line 42) | def __init__(self, owner): method cookies (line 47) | def cookies(self): method download_path (line 52) | def download_path(self, path): method timeout (line 57) | def timeout(self, second): method encoding (line 60) | def encoding(self, encoding, set_all=True): method headers (line 66) | def headers(self, headers): method header (line 69) | def header(self, name, value): method user_agent (line 72) | def user_agent(self, ua): method proxies (line 75) | def proxies(self, http=None, https=None): method auth (line 78) | def auth(self, auth): method hooks (line 81) | def hooks(self, hooks): method params (line 84) | def params(self, params): method verify (line 87) | def verify(self, on_off): method cert (line 90) | def cert(self, cert): method stream (line 93) | def stream(self, on_off): method trust_env (line 96) | def trust_env(self, on_off): method max_redirects (line 99) | def max_redirects(self, times): method add_adapter (line 102) | def add_adapter(self, url, adapter): class BrowserBaseSetter (line 106) | class BrowserBaseSetter(BaseSetter): method __init__ (line 107) | def __init__(self, owner): method load_mode (line 112) | def load_mode(self): method timeouts (line 115) | def timeouts(self, base=None, page_load=None, script=None): class BrowserSetter (line 126) | class BrowserSetter(BrowserBaseSetter): method cookies (line 129) | def cookies(self): method auto_handle_alert (line 134) | def auto_handle_alert(self, on_off=True, accept=True): method download_path (line 137) | def download_path(self, path): method download_file_name (line 141) | def download_file_name(self, name=None, suffix=None): method when_download_file_exists (line 144) | def when_download_file_exists(self, mode): class ChromiumBaseSetter (line 154) | class ChromiumBaseSetter(BrowserBaseSetter): method scroll (line 157) | def scroll(self): method cookies (line 161) | def cookies(self): method headers (line 166) | def headers(self, headers): method user_agent (line 170) | def user_agent(self, ua, platform=None): method session_storage (line 176) | def session_storage(self, item, value): method local_storage (line 187) | def local_storage(self, item, value): method upload_files (line 198) | def upload_files(self, files): method auto_handle_alert (line 209) | def auto_handle_alert(self, on_off=True, accept=True): method blocked_urls (line 212) | def blocked_urls(self, urls): class TabSetter (line 224) | class TabSetter(ChromiumBaseSetter): method __init__ (line 225) | def __init__(self, owner): method window (line 229) | def window(self): method download_path (line 232) | def download_path(self, path): method download_file_name (line 238) | def download_file_name(self, name=None, suffix=None): method when_download_file_exists (line 241) | def when_download_file_exists(self, mode): method activate (line 250) | def activate(self): class ChromiumPageSetter (line 254) | class ChromiumPageSetter(TabSetter): method NoneElement_value (line 256) | def NoneElement_value(self, value=None, on_off=True): method retry_times (line 261) | def retry_times(self, times): method retry_interval (line 265) | def retry_interval(self, interval): method download_path (line 269) | def download_path(self, path): method download_file_name (line 277) | def download_file_name(self, name=None, suffix=None): method when_download_file_exists (line 280) | def when_download_file_exists(self, mode): class WebPageSetter (line 284) | class WebPageSetter(ChromiumPageSetter): method __init__ (line 285) | def __init__(self, owner): method cookies (line 291) | def cookies(self): method headers (line 296) | def headers(self, headers): method user_agent (line 302) | def user_agent(self, ua, platform=None): class MixTabSetter (line 309) | class MixTabSetter(TabSetter): method __init__ (line 310) | def __init__(self, owner): method cookies (line 316) | def cookies(self): method headers (line 321) | def headers(self, headers): method user_agent (line 327) | def user_agent(self, ua, platform=None): method timeouts (line 333) | def timeouts(self, base=None, page_load=None, script=None): class ChromiumElementSetter (line 339) | class ChromiumElementSetter(object): method __init__ (line 340) | def __init__(self, ele): method attr (line 343) | def attr(self, name, value=''): method property (line 352) | def property(self, name, value): method style (line 356) | def style(self, name, value): method innerHTML (line 362) | def innerHTML(self, html): method value (line 365) | def value(self, value): class ChromiumFrameSetter (line 369) | class ChromiumFrameSetter(ChromiumBaseSetter): method attr (line 370) | def attr(self, name, value): method property (line 373) | def property(self, name, value): method style (line 376) | def style(self, name, value): class LoadMode (line 380) | class LoadMode(object): method __init__ (line 381) | def __init__(self, owner): method __call__ (line 384) | def __call__(self, value): method normal (line 392) | def normal(self): method eager (line 395) | def eager(self): method none (line 398) | def none(self): class PageScrollSetter (line 402) | class PageScrollSetter(object): method __init__ (line 403) | def __init__(self, scroll): method wait_complete (line 406) | def wait_complete(self, on_off=True): method smooth (line 412) | def smooth(self, on_off=True): class WindowSetter (line 421) | class WindowSetter(object): method __init__ (line 422) | def __init__(self, owner): method max (line 426) | def max(self): method mini (line 432) | def mini(self): method full (line 438) | def full(self): method normal (line 444) | def normal(self): method size (line 450) | def size(self, width=None, height=None): method location (line 460) | def location(self, x=None, y=None): method hide (line 468) | def hide(self): method show (line 471) | def show(self): method _get_info (line 474) | def _get_info(self): method _perform (line 482) | def _perform(self, bounds): FILE: DrissionPage/_units/setter.pyi class BaseSetter (line 30) | class BaseSetter(object): method __init__ (line 33) | def __init__(self, owner: Union[Chromium, BasePage]): method NoneElement_value (line 39) | def NoneElement_value(self, method retry_times (line 49) | def retry_times(self, times: int) -> None: method retry_interval (line 56) | def retry_interval(self, interval: float) -> None: method download_path (line 63) | def download_path(self, path: Union[str, Path, None]) -> None: class SessionPageSetter (line 71) | class SessionPageSetter(BaseSetter): method __init__ (line 75) | def __init__(self, owner: SessionPage): method cookies (line 82) | def cookies(self) -> SessionCookiesSetter: method download_path (line 86) | def download_path(self, path: Union[str, Path, None]) -> None: method timeout (line 93) | def timeout(self, second: float) -> None: method encoding (line 100) | def encoding(self, encoding: Union[str, None], set_all: bool = True) -... method headers (line 108) | def headers(self, headers: Union[str, dict]) -> None: method header (line 115) | def header(self, name: str, value: str) -> None: method user_agent (line 123) | def user_agent(self, ua: str) -> None: method proxies (line 130) | def proxies(self, http: str = None, https: str = None) -> None: method auth (line 138) | def auth(self, auth: Union[Tuple[str, str], HTTPBasicAuth, None]) -> N... method hooks (line 145) | def hooks(self, hooks: Union[dict, None]) -> None: method params (line 152) | def params(self, params: Union[dict, None]) -> None: method verify (line 159) | def verify(self, on_off: Union[bool, None]) -> None: method cert (line 166) | def cert(self, cert: Union[str, Tuple[str, str], None]) -> None: method stream (line 173) | def stream(self, on_off: Union[bool, None]) -> None: method trust_env (line 180) | def trust_env(self, on_off: Union[bool, None]) -> None: method max_redirects (line 187) | def max_redirects(self, times: Union[int, None]) -> None: method add_adapter (line 194) | def add_adapter(self, url: str, adapter: HTTPAdapter) -> None: class BrowserBaseSetter (line 203) | class BrowserBaseSetter(BaseSetter): method __init__ (line 207) | def __init__(self, owner: ChromiumBase): method load_mode (line 214) | def load_mode(self) -> LoadMode: method timeouts (line 218) | def timeouts(self, class BrowserSetter (line 231) | class BrowserSetter(BrowserBaseSetter): method __init__ (line 235) | def __init__(self, owner: Chromium): method cookies (line 242) | def cookies(self) -> BrowserCookiesSetter: method window (line 247) | def window(self)->WindowSetter:... method auto_handle_alert (line 249) | def auto_handle_alert(self, method download_path (line 259) | def download_path(self, path: Union[Path, str, None]) -> None: method download_file_name (line 266) | def download_file_name(self, method when_download_file_exists (line 276) | def when_download_file_exists(self, mode: FILE_EXISTS) -> None: class ChromiumBaseSetter (line 284) | class ChromiumBaseSetter(BrowserBaseSetter): method __init__ (line 288) | def __init__(self, owner): ... method scroll (line 291) | def scroll(self) -> PageScrollSetter: method cookies (line 296) | def cookies(self) -> CookiesSetter: method headers (line 300) | def headers(self, headers: Union[dict, str]) -> None: method user_agent (line 307) | def user_agent(self, ua: str, platform: str = None) -> None: method session_storage (line 315) | def session_storage(self, item: str, value: Union[str, bool]) -> None: method local_storage (line 323) | def local_storage(self, item: str, value: Union[str, bool]) -> None: method upload_files (line 331) | def upload_files(self, files: Union[str, Path, list, tuple]) -> None: method auto_handle_alert (line 338) | def auto_handle_alert(self, method blocked_urls (line 348) | def blocked_urls(self, urls: Union[list, tuple, str, None]) -> None: class TabSetter (line 356) | class TabSetter(ChromiumBaseSetter): method __init__ (line 359) | def __init__(self, owner: ChromiumTab): method window (line 366) | def window(self) -> WindowSetter: method download_path (line 370) | def download_path(self, path: Union[str, Path, None]) -> None: method download_file_name (line 377) | def download_file_name(self, method when_download_file_exists (line 387) | def when_download_file_exists(self, mode: FILE_EXISTS) -> None: method activate (line 394) | def activate(self) -> None: class ChromiumPageSetter (line 399) | class ChromiumPageSetter(TabSetter): method __init__ (line 402) | def __init__(self, owner: ChromiumPage): class WebPageSetter (line 409) | class WebPageSetter(ChromiumPageSetter): method __init__ (line 414) | def __init__(self, owner: WebPage): method cookies (line 421) | def cookies(self) -> WebPageCookiesSetter: class MixTabSetter (line 426) | class MixTabSetter(TabSetter): method __init__ (line 431) | def __init__(self, owner: MixTab): method cookies (line 438) | def cookies(self) -> WebPageCookiesSetter: method timeouts (line 442) | def timeouts(self, class ChromiumElementSetter (line 455) | class ChromiumElementSetter(object): method __init__ (line 458) | def __init__(self, ele: ChromiumElement): method attr (line 464) | def attr(self, name: str, value: str = '') -> None: method property (line 472) | def property(self, name: str, value: str) -> None: method style (line 480) | def style(self, name: str, value: str) -> None: method innerHTML (line 488) | def innerHTML(self, html: str) -> None: method value (line 495) | def value(self, value: str) -> None: class ChromiumFrameSetter (line 503) | class ChromiumFrameSetter(ChromiumBaseSetter): method attr (line 506) | def attr(self, name: str, value: str) -> None: method property (line 514) | def property(self, name, value) -> None: method style (line 522) | def style(self, name, value) -> None: class LoadMode (line 531) | class LoadMode(object): method __init__ (line 535) | def __init__(self, owner: Union[Chromium, ChromiumBase]): method __call__ (line 541) | def __call__(self, value: Literal['normal', 'eager', 'none']) -> None: method normal (line 548) | def normal(self) -> None: method eager (line 552) | def eager(self) -> None: method none (line 556) | def none(self) -> None: class PageScrollSetter (line 561) | class PageScrollSetter(object): method __init__ (line 564) | def __init__(self, scroll: PageScroller): method wait_complete (line 570) | def wait_complete(self, on_off: bool = True): method smooth (line 577) | def smooth(self, on_off: bool = True): class WindowSetter (line 585) | class WindowSetter(object): method __init__ (line 590) | def __init__(self, owner: Union[ChromiumTab, ChromiumPage]): method max (line 596) | def max(self) -> None: method mini (line 600) | def mini(self) -> None: method full (line 604) | def full(self) -> None: method normal (line 608) | def normal(self) -> None: method size (line 612) | def size(self, width: int = None, height: int = None) -> None: method location (line 620) | def location(self, x: int = None, y: int = None) -> None: method hide (line 628) | def hide(self) -> None: method show (line 632) | def show(self) -> None: method _get_info (line 636) | def _get_info(self) -> dict: method _perform (line 640) | def _perform(self, bounds: dict) -> None: FILE: DrissionPage/_units/states.py class ElementStates (line 12) | class ElementStates(object): method __init__ (line 13) | def __init__(self, ele): method is_selected (line 17) | def is_selected(self): method is_checked (line 21) | def is_checked(self): method is_displayed (line 25) | def is_displayed(self): method is_enabled (line 31) | def is_enabled(self): method is_alive (line 35) | def is_alive(self): method is_in_viewport (line 43) | def is_in_viewport(self): method is_whole_in_viewport (line 48) | def is_whole_in_viewport(self): method is_covered (line 55) | def is_covered(self): method is_clickable (line 64) | def is_clickable(self): method has_rect (line 68) | def has_rect(self): class ShadowRootStates (line 75) | class ShadowRootStates(object): method __init__ (line 76) | def __init__(self, ele): method is_enabled (line 80) | def is_enabled(self): method is_alive (line 84) | def is_alive(self): class BrowserStates (line 92) | class BrowserStates(object): method __init__ (line 93) | def __init__(self, browser): method is_alive (line 98) | def is_alive(self): method is_headless (line 102) | def is_headless(self): method is_existed (line 106) | def is_existed(self): method is_incognito (line 110) | def is_incognito(self): class PageStates (line 116) | class PageStates(object): method __init__ (line 119) | def __init__(self, owner): method is_loading (line 123) | def is_loading(self): method is_alive (line 127) | def is_alive(self): method ready_state (line 135) | def ready_state(self): method has_alert (line 139) | def has_alert(self): method is_headless (line 143) | def is_headless(self): method is_existed (line 147) | def is_existed(self): method is_incognito (line 151) | def is_incognito(self): class FrameStates (line 155) | class FrameStates(object): method __init__ (line 156) | def __init__(self, frame): method is_loading (line 160) | def is_loading(self): method is_alive (line 164) | def is_alive(self): method ready_state (line 173) | def ready_state(self): method is_displayed (line 177) | def is_displayed(self): method has_alert (line 183) | def has_alert(self): FILE: DrissionPage/_units/states.pyi class ElementStates (line 16) | class ElementStates(object): method __init__ (line 19) | def __init__(self, ele: ChromiumElement): method is_selected (line 26) | def is_selected(self) -> bool: method is_checked (line 31) | def is_checked(self) -> bool: method is_displayed (line 36) | def is_displayed(self) -> bool: method is_enabled (line 41) | def is_enabled(self) -> bool: method is_alive (line 46) | def is_alive(self) -> bool: method is_in_viewport (line 51) | def is_in_viewport(self) -> bool: method is_whole_in_viewport (line 56) | def is_whole_in_viewport(self) -> bool: method is_covered (line 61) | def is_covered(self) -> Union[Literal[False], int]: method is_clickable (line 66) | def is_clickable(self) -> bool: method has_rect (line 71) | def has_rect(self) -> Union[Literal[False], List[Tuple[float, float]]]: class ShadowRootStates (line 76) | class ShadowRootStates(object): method __init__ (line 79) | def __init__(self, ele: ShadowRoot): method is_enabled (line 86) | def is_enabled(self) -> bool: method is_alive (line 91) | def is_alive(self) -> bool: class BrowserStates (line 96) | class BrowserStates(object): method __init__ (line 100) | def __init__(self, browser: Chromium): method is_alive (line 107) | def is_alive(self) -> bool: method is_headless (line 112) | def is_headless(self) -> bool: method is_existed (line 117) | def is_existed(self) -> bool: method is_incognito (line 122) | def is_incognito(self) -> bool: class PageStates (line 127) | class PageStates(object): method __init__ (line 130) | def __init__(self, owner: ChromiumBase): method is_loading (line 137) | def is_loading(self) -> bool: method is_alive (line 142) | def is_alive(self) -> bool: method ready_state (line 147) | def ready_state(self) -> Optional[str]: method has_alert (line 152) | def has_alert(self) -> bool: method is_headless (line 157) | def is_headless(self) -> bool: method is_existed (line 162) | def is_existed(self) -> bool: method is_incognito (line 167) | def is_incognito(self) -> bool: class FrameStates (line 172) | class FrameStates(object): method __init__ (line 175) | def __init__(self, frame: ChromiumFrame): method is_loading (line 182) | def is_loading(self) -> bool: method is_alive (line 187) | def is_alive(self) -> bool: method ready_state (line 192) | def ready_state(self) -> str: method is_displayed (line 197) | def is_displayed(self) -> bool: method has_alert (line 202) | def has_alert(self) -> bool: FILE: DrissionPage/_units/waiter.py class OriginWaiter (line 15) | class OriginWaiter(object): method __init__ (line 16) | def __init__(self, owner): method __call__ (line 19) | def __call__(self, second, scope=None): class BrowserWaiter (line 28) | class BrowserWaiter(OriginWaiter): method new_tab (line 29) | def new_tab(self, timeout=None, curr_tab=None, raise_err=None): method download_begin (line 47) | def download_begin(self, timeout=None, cancel_it=False): method downloads_done (line 55) | def downloads_done(self, timeout=None, cancel_if_timeout=True): class BaseWaiter (line 79) | class BaseWaiter(OriginWaiter): method ele_deleted (line 80) | def ele_deleted(self, loc_or_ele, timeout=None, raise_err=None): method ele_displayed (line 84) | def ele_displayed(self, loc_or_ele, timeout=None, raise_err=None): method ele_hidden (line 96) | def ele_hidden(self, loc_or_ele, timeout=None, raise_err=None): method eles_loaded (line 109) | def eles_loaded(self, locators, timeout=None, any_one=False, raise_err... method load_start (line 154) | def load_start(self, timeout=None, raise_err=None): method doc_loaded (line 157) | def doc_loaded(self, timeout=None, raise_err=None): method upload_paths_inputted (line 160) | def upload_paths_inputted(self): method download_begin (line 168) | def download_begin(self, timeout=None, cancel_it=False): method url_change (line 176) | def url_change(self, text, exclude=False, timeout=None, raise_err=None): method title_change (line 179) | def title_change(self, text, exclude=False, timeout=None, raise_err=No... method _change (line 182) | def _change(self, arg, text, exclude=False, timeout=None, raise_err=No... method _loading (line 211) | def _loading(self, timeout=None, start=True, gap=.01, raise_err=None): class TabWaiter (line 227) | class TabWaiter(BaseWaiter): method downloads_done (line 228) | def downloads_done(self, timeout=None, cancel_if_timeout=True): method alert_closed (line 251) | def alert_closed(self, timeout=None): class ChromiumPageWaiter (line 268) | class ChromiumPageWaiter(TabWaiter): method new_tab (line 269) | def new_tab(self, timeout=None, raise_err=None): method download_begin (line 272) | def download_begin(self, timeout=None, cancel_it=False): method all_downloads_done (line 275) | def all_downloads_done(self, timeout=None, cancel_if_timeout=True): class ElementWaiter (line 279) | class ElementWaiter(OriginWaiter): method __init__ (line 280) | def __init__(self, owner): method _timeout (line 285) | def _timeout(self): method deleted (line 288) | def deleted(self, timeout=None, raise_err=None): method displayed (line 292) | def displayed(self, timeout=None, raise_err=None): method hidden (line 296) | def hidden(self, timeout=None, raise_err=None): method covered (line 300) | def covered(self, timeout=None, raise_err=None): method not_covered (line 305) | def not_covered(self, timeout=None, raise_err=None): method enabled (line 309) | def enabled(self, timeout=None, raise_err=None): method disabled (line 313) | def disabled(self, timeout=None, raise_err=None): method disabled_or_deleted (line 317) | def disabled_or_deleted(self, timeout=None, raise_err=None): method clickable (line 334) | def clickable(self, wait_moved=True, timeout=None, raise_err=None): method has_rect (line 345) | def has_rect(self, timeout=None, raise_err=None): method stop_moving (line 350) | def stop_moving(self, timeout=None, gap=.1, raise_err=None): method _wait_state (line 380) | def _wait_state(self, attr, mode=False, timeout=None, raise_err=None, ... class FrameWaiter (line 401) | class FrameWaiter(BaseWaiter, ElementWaiter): method __init__ (line 402) | def __init__(self, owner): method _timeout (line 407) | def _timeout(self): function wait_mission (line 411) | def wait_mission(browser, tid, timeout=None): FILE: DrissionPage/_units/waiter.pyi class OriginWaiter (line 21) | class OriginWaiter(object): method __init__ (line 24) | def __init__(self, owner: Any): ... method __call__ (line 26) | def __call__(self, second: float, scope: float = None): class BrowserWaiter (line 35) | class BrowserWaiter(OriginWaiter): method __init__ (line 38) | def __init__(self, owner: Chromium): method __call__ (line 44) | def __call__(self, second: float, scope: float = None) -> Chromium: method new_tab (line 52) | def new_tab(self, method download_begin (line 64) | def download_begin(self, timeout: float = None, cancel_it: bool = Fals... method downloads_done (line 72) | def downloads_done(self, timeout: float = None, cancel_if_timeout: boo... class BaseWaiter (line 81) | class BaseWaiter(OriginWaiter): method ele_deleted (line 84) | def ele_deleted(self, method ele_displayed (line 96) | def ele_displayed(self, method ele_hidden (line 108) | def ele_hidden(self, method eles_loaded (line 120) | def eles_loaded(self, method load_start (line 134) | def load_start(self, timeout: float = None, raise_err: bool = None) ->... method doc_loaded (line 142) | def doc_loaded(self, timeout: float = None, raise_err: bool = None) ->... method upload_paths_inputted (line 150) | def upload_paths_inputted(self) -> bool: method download_begin (line 154) | def download_begin(self, timeout: float = None, cancel_it: bool = Fals... method url_change (line 162) | def url_change(self, method title_change (line 176) | def title_change(self, method _change (line 190) | def _change(self, method _loading (line 206) | def _loading(self, class TabWaiter (line 221) | class TabWaiter(BaseWaiter): method __init__ (line 224) | def __init__(self, owner: ChromiumTab): method __call__ (line 230) | def __call__(self, method downloads_done (line 240) | def downloads_done(self, method alert_closed (line 250) | def alert_closed(self, timeout: float = None) -> ChromiumTab: method url_change (line 257) | def url_change(self, method title_change (line 271) | def title_change(self, class MixTabWaiter (line 286) | class MixTabWaiter(BaseWaiter): method __init__ (line 289) | def __init__(self, owner: MixTab): method __call__ (line 295) | def __call__(self, method downloads_done (line 305) | def downloads_done(self, method alert_closed (line 315) | def alert_closed(self, timeout: float = None) -> MixTab: method url_change (line 322) | def url_change(self, method title_change (line 336) | def title_change(self, class ChromiumPageWaiter (line 351) | class ChromiumPageWaiter(TabWaiter): method __init__ (line 354) | def __init__(self, owner: ChromiumPage): method __call__ (line 360) | def __call__(self, method new_tab (line 370) | def new_tab(self, method all_downloads_done (line 380) | def all_downloads_done(self, method url_change (line 390) | def url_change(self, method title_change (line 404) | def title_change(self, class WebPageWaiter (line 419) | class WebPageWaiter(TabWaiter): method __init__ (line 422) | def __init__(self, owner: WebPage): method __call__ (line 428) | def __call__(self, method new_tab (line 438) | def new_tab(self, method all_downloads_done (line 448) | def all_downloads_done(self, method url_change (line 458) | def url_change(self, method title_change (line 472) | def title_change(self, class ElementWaiter (line 487) | class ElementWaiter(OriginWaiter): method __init__ (line 491) | def __init__(self, owner: ChromiumElement): method __call__ (line 497) | def __call__(self, method _timeout (line 508) | def _timeout(self) -> float: method deleted (line 512) | def deleted(self, timeout: float = None, raise_err: bool = None) -> Un... method displayed (line 520) | def displayed(self, timeout: float = None, raise_err: bool = None) -> ... method hidden (line 528) | def hidden(self, timeout: float = None, raise_err: bool = None) -> Uni... method covered (line 536) | def covered(self, timeout: float = None, raise_err: bool = None) -> Un... method not_covered (line 544) | def not_covered(self, timeout: float = None, raise_err: bool = None) -... method enabled (line 552) | def enabled(self, timeout: float = None, raise_err: bool = None) -> Un... method disabled (line 560) | def disabled(self, timeout: float = None, raise_err: bool = None) -> U... method disabled_or_deleted (line 568) | def disabled_or_deleted(self, timeout: float = None, raise_err: bool =... method clickable (line 576) | def clickable(self, method has_rect (line 588) | def has_rect(self, method stop_moving (line 598) | def stop_moving(self, method _wait_state (line 610) | def _wait_state(self, class FrameWaiter (line 627) | class FrameWaiter(BaseWaiter, ElementWaiter): method __init__ (line 630) | def __init__(self, owner: ChromiumFrame): method __call__ (line 636) | def __call__(self, method url_change (line 646) | def url_change(self, method title_change (line 660) | def title_change(self, method deleted (line 674) | def deleted(self, timeout: float = None, raise_err: bool = None) -> Un... method displayed (line 682) | def displayed(self, timeout: float = None, raise_err: bool = None) -> ... method hidden (line 690) | def hidden(self, timeout: float = None, raise_err: bool = None) -> Uni... method has_rect (line 698) | def has_rect(self, method covered (line 708) | def covered(self, timeout: float = None, raise_err: bool = None) -> Un... method not_covered (line 716) | def not_covered(self, timeout: float = None, raise_err: bool = None) -... method enabled (line 724) | def enabled(self, timeout: float = None, raise_err: bool = None) -> Un... method disabled (line 732) | def disabled(self, timeout: float = None, raise_err: bool = None) -> U... method disabled_or_deleted (line 740) | def disabled_or_deleted(self, timeout: float = None, raise_err: bool =... method clickable (line 748) | def clickable(self, method stop_moving (line 760) | def stop_moving(self, function wait_mission (line 773) | def wait_mission(browser: Chromium, tid: str, timeout: float = None) -> ... FILE: DrissionPage/common.py function from_selenium (line 22) | def from_selenium(driver): function from_playwright (line 32) | def from_playwright(page_or_browser): FILE: DrissionPage/errors.py class BaseError (line 11) | class BaseError(Exception): method __init__ (line 13) | def __init__(self, *args, **kwargs): method __str__ (line 17) | def __str__(self): class ElementNotFoundError (line 21) | class ElementNotFoundError(BaseError): class AlertExistsError (line 25) | class AlertExistsError(BaseError): class ContextLostError (line 29) | class ContextLostError(BaseError): class ElementLostError (line 33) | class ElementLostError(BaseError): class CDPError (line 37) | class CDPError(BaseError): class PageDisconnectedError (line 41) | class PageDisconnectedError(BaseError): class JavaScriptError (line 45) | class JavaScriptError(BaseError): class NoRectError (line 49) | class NoRectError(BaseError): class BrowserConnectError (line 53) | class BrowserConnectError(BaseError): class NoResourceError (line 57) | class NoResourceError(BaseError): class CanNotClickError (line 61) | class CanNotClickError(BaseError): class GetDocumentError (line 65) | class GetDocumentError(BaseError): class WaitTimeoutError (line 69) | class WaitTimeoutError(BaseError): class IncorrectURLError (line 73) | class IncorrectURLError(BaseError): class StorageError (line 77) | class StorageError(BaseError): class CookieFormatError (line 81) | class CookieFormatError(BaseError): class TargetNotFoundError (line 85) | class TargetNotFoundError(BaseError): class LocatorError (line 89) | class LocatorError(BaseError): class UnknownError (line 93) | class UnknownError(BaseError):