Selenium webdriver 可以附加到已经打开的浏览器窗口吗?

经过大量搜索,我相信这个功能还没有实现——但是有没有人知道我可以尝试使用 selenium1/2 为 Java 实现的任何解决方法?如果另一个进程启动了浏览器的实例,webdriver 可以连接到那个窗口吗?任何可以尝试的解决方法.任何指针都非常感谢.

After a lot of searching I believe this feature is not implemented yet- but does anyone know of any workaround implemented for Java with selenium1/2 that i can try? If a different process started the instance of the browser , can webdriver connect to that window? Any workarounds that can be tried. Any pointers is much appreciated.

谢谢你!!

推荐答案

不行,做不到.它是 WebDriver 的最古老的功能请求之一,它是不会很快发生.对不起!

Nope, it can't be done. It's one of the oldest feature requests for WebDriver, and it isn't going to happen any time soon. Sorry!

相关文章