DrissionPage
时间: 2024-03-07 17:28:24 浏览: 231
DrissionPage是一个Python库,可以用于启动浏览器并自动化进行网页操作。具体而言,可以使用以下代码来启动浏览器并打开百度网页:
```
from DrissionPage import ChromiumPage
page = ChromiumPage()
page.get('https://www.baidu.com')
```
这段代码会创建一个ChromiumPage对象,然后使用get方法打开指定的网址,这里是百度网页。
DrissionPage的设计理念在很多方面都值得借鉴,虽然存在一些不足之处,但整体来说是一个很有潜力的项目。如果想了解更多功能和使用细节,可以参考项目文档,文档地址是:http://g1879.gitee.io/drissionpagedocs/。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [自动化测试框架:DrissionPage](https://blog.csdn.net/OKCRoss/article/details/129693470)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [undefined](undefined)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [推荐一款新的自动化测试框架:DrissionPage](https://blog.csdn.net/m0_67695717/article/details/129284355)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文