python - 我可以将 Selenium/Geckodriver 浏览器重新连接到新的驱动程序吗?
问题描述
我通过 Selenium 使用 Geckodriver 启动了一个 Firefox 浏览器。我继续使用那个 Firefox 浏览器,但不再有 selenium 驱动程序对象。现在我想通过 Selenium 重新连接到浏览器。
有没有办法将浏览器连接到新的 selenium 驱动程序?
或者,有没有办法从使用 selenium 启动的现有浏览器中恢复 session_id?
解决方案
推荐阅读
- cmake - 如何在 CMake 中添加 allegro 库?
- sql-server - SQL Server 报告服务器未连接:SQL Server 2019 Enterprise
- mongodb - Mongo 聚合失败并显示“超过 $group 的内存限制”
- c - 如何从开放地址哈希表返回键比较?
- linux - 为什么我必须将第二个参数返回为 (struct sockaddr*)&ser_addr 而不是 &ser_addr?
- python - 模块“不和谐”没有属性“意图”错误
- c - 将打印语句作为输入的 C 程序
- visual-studio-code - Vim VS Code Extension: How to remap "i" in normal mode to Escape key?
- statistics - 面板数据随机效应回归模型中的 Beta 系数
- c - “\e”是做什么的?"\e[1;1H\e[2J" 有什么作用?