Can Selenium interact with an existing browser session?

后端 未结 11 891
野性不改
野性不改 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:25

    Javascript solution:

    I have successfully attached to existing browser session using this function

    webdriver.WebDriver.attachToSession(executor, session_id);
    

    Documentation can be found here.

提交回复
热议问题