mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
prop()改成property(),参数改为name; get_src()改为src(); get_cookies()方法改成cookies(); 删除cookies属性; get_session_storage()、get_local_storage()改成session_storage()、local_storage(); pageLoad改成page_load; set_a_header()、remove_a_header()、set.header()、set.attr()的参数改为name; 元素增加value属性和set.value()方法; loc_or_ele、loc_or_str等改为locator; 提高截图jpg格式画质; 修复s模式timeout参数失效问题; 修复wait.has_rect()等出现的问题; 修复找不到浏览器路径时报ini错误问题 增加一些提示
29 lines
605 B
Python
29 lines
605 B
Python
# -*- coding:utf-8 -*-
|
|
"""
|
|
@Author : g1879
|
|
@Contact : g1879@qq.com
|
|
@Copyright: (c) 2024 by g1879, Inc. All Rights Reserved.
|
|
@License : BSD 3-Clause.
|
|
"""
|
|
from typing import Union
|
|
|
|
from .._configs.chromium_options import ChromiumOptions
|
|
|
|
|
|
def connect_browser(option: ChromiumOptions) -> bool: ...
|
|
|
|
|
|
def get_launch_args(opt: ChromiumOptions) -> list: ...
|
|
|
|
|
|
def set_prefs(opt: ChromiumOptions) -> None: ...
|
|
|
|
|
|
def set_flags(opt: ChromiumOptions) -> None: ...
|
|
|
|
|
|
def test_connect(ip: str, port: Union[int, str], timeout: float = 30) -> None: ...
|
|
|
|
|
|
def get_chrome_path(ini_path: str) -> Union[str, None]: ...
|