首页 > 解决方案 > 我可以将 Selenium/Geckodriver 浏览器重新连接到新的驱动程序吗?

问题描述

我通过 Selenium 使用 Geckodriver 启动了一个 Firefox 浏览器。我继续使用那个 Firefox 浏览器,但不再有 selenium 驱动程序对象。现在我想通过 Selenium 重新连接到浏览器。

有没有办法将浏览器连接到新的 selenium 驱动程序?

或者,有没有办法从使用 selenium 启动的现有浏览器中恢复 session_id?

标签: pythonseleniumfirefoxgeckodriver

解决方案


推荐阅读