[🐛 Bug]: from_selenium()方法报错: 'Chromium' object has no attribute 'get'
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, 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!
genuinely curious if this issue will get solved since it's in chinese 🤔
@foloey
你似乎提问错了地方, 你使用的是DrissionPage, 引用的是DrissionPage文档, 你应该去那创建issue.
我认为完全可以关闭此issue
You seem to be asking the wrong question, you are using the DrissionPage, which is referencing a DrissionPage document, you should go there to create an issue.
I think this issue can be closed directly.
Closing as not related to selenium directly.