DrissionPage icon indicating copy to clipboard operation
DrissionPage copied to clipboard

基于python的网页自动化工具。既能控制浏览器,也能收发数据包。可兼顾浏览器自动化的便利性和requests的高效率。功能强大,内置无数人性化设计和便捷功能。语法简洁而优雅,代码量少。

Results 272 DrissionPage issues
Sort by recently updated
recently updated
newest added

近期 Gitee 在没有通知的情况下,下线了所有 Gitee Pages 的服务,[中文文档](https://g1879.gitee.io/drissionpagedocs)已失效

![image](https://github.com/g1879/DrissionPage/assets/144228970/9c851def-ba74-4a5a-bdd9-9c7c7b345dbe) ![image](https://github.com/g1879/DrissionPage/assets/144228970/212b6537-ac33-482f-a8ac-a0bc8ed7f271) 无法监听到这些请求

It returns a default None instead. This inconsistent behaviour is causing problems. https://github.com/g1879/DrissionPage/blob/050102323f29a4a5a3a95009207eacde00fb427b/DrissionPage/_elements/none_element.py#L45

from DrissionPage import ChromiumPage p = ChromiumPage() p.get('https://nowsecure.nl') i = p.get_frame('@src^https://challenges.cloudflare.com/cdn-cgi') if i: i('.mark').click() it is worked perfectly before today. what is the problem anyone help me ?

我使用 Chrome 124.0.6367.201。 我收到此错误,请帮助我 ![image](https://github.com/g1879/DrissionPage/assets/39423543/b518e7f6-9531-44cd-83d8-6f7f2da62f30)

```python from DrissionPage import ChromiumOptions, ChromiumPage edge_path = r"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" co = ( ChromiumOptions() .set_browser_path(edge_path) .use_system_user_path() .set_local_port(9333) ) page = ChromiumPage(co) page.get("https://www.baidu.com") ``` ![image](https://github.com/g1879/DrissionPage/assets/35067857/1ff67aca-01af-4da8-bbc7-d34827edbb5c) 我的想法是,打开一个新的浏览器页面并使用系统浏览器用户目录复用登录等信息,但是在运行程序后会打开一个新的浏览器页面,然后报错。为什么?

***It's seem same way to locate element is ok, but why one work one doesn't?*** ```python page=WebPage() page.get("http://spiderbuf.cn/h03/") divs=[] divs+=page.eles("c:margin-top: 10px;") print(divs) ``` ```python page=WebPage("s") page.get("http://spiderbuf.cn/h03/") divs=[] divs+=page.eles("c:margin-top: 10px;") print(divs)...

as title. visibilitychange dont work in current tab page after open new tab

在循环中持续save mhtml 几十到上百次之后会发生这个错误 CDPError: 错误:Failed to generate MHTML 方法:Page.captureSnapshot 参数:{'_timeout': 30} 版本:4.0.4.21

args: {'locator': ('xpath', '//a[@data-aspm-param="title=创作内容"]'), 'index': 1} 2--->creative_content_btn exception: 错误:Not attached to an active page 方法:Page.reload 参数:{'ignoreCache': False, '_timeout': 30} 版本:4.0.4.21 出现这个错误可能意味着程序有bug,请把错误信息和重现方法告知作者,谢谢。 报告网站:https://gitee.com/g1879/DrissionPage/issues