Skip to content

[🐛 Bug]: from_selenium()方法报错: 'Chromium' object has no attribute 'get' #2152

Open
@foloey

Description

@foloey

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位

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions