Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
foloey opened this issue Jan 24, 2025 · 1 comment
Labels
bug Something isn't working needs-triaging

Comments

@foloey
Copy link

foloey commented Jan 24, 2025

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位

@foloey foloey added bug Something isn't working needs-triaging labels Jan 24, 2025
Copy link
Contributor

@foloey, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triaging
Projects
None yet
Development

No branches or pull requests

1 participant