Can Selenium interact with an existing browser session?

后端 未结 11 1020
野性不改
野性不改 2020-11-22 08:47

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?

11条回答
  •  借酒劲吻你
    2020-11-22 09:12

    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/.

提交回复
热议问题