Selenium可以与现有的浏览器会话进行交互吗? [英] Can Selenium interact with an existing browser session?
问题描述
在启动Selenium客户端之前,有人知道Selenium(最好是WebDriver)是否能够与已经运行的浏览器进行通信并通过它进行操作吗?
Does anybody know if Selenium (WebDriver preferably) is able to communicate with and act through a browser that is already running before launching a Selenium Client?
我的意思是说Selenium是否能够在不使用Selenium Server的情况下与浏览器通信(例如,可能是手动启动的Internet Explorer).
I mean if Selenium is able to comunicate with a browser without using the Selenium Server (with could be an Internet Explorer launched manually for example).
推荐答案
This is a pretty old feature request: Allow webdriver to attach to a running browser . So it's officially not supported.
However, there is some working code which claims to support this: https://web.archive.org/web/20171214043703/http://tarunlalwani.com/post/reusing-existing-browser-session-selenium-java/.
这篇关于Selenium可以与现有的浏览器会话进行交互吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!