Open
Description
What happened?
直接用的文档案例里的代码 进阶使用-和其他项目对接:
from DrissionPage.common import from_selenium
from selenium.webdriver import Chrome
# 创建WebDriver对象
driver = Chrome()
# 从该WebDriver对象创建ChromiumPage对象
page = from_selenium(driver)
# 用ChromiumPage对象操作浏览器
page.get('http://www.DrissionPage.cn')
主要包版本如下:
selenium=4.28.0
requests=2.32.3
DrissionPage=4.1.0.17
执行后,报错:
page.get('http://www.DrissionPage.cn')
^^^^^^^^
AttributeError: 'Chromium' object has no attribute 'get'. Did you mean: 'set'?
What browsers and operating systems are you seeing the problem on?
Google Chrome - 版本 132.0.6834.110(正式版本) (64 位)
Window 11 64位
Activity