What is the Selenium equivalent to attaching an existing browser in Watir?
brw = Watir::IE.attach(:title, \"Google\")
Run a Webdriver first
driver = new FirefoxDriver();
Now run a RemoteWebdriver
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
driver = new RemoteWebDriver(new URL("http://localhost:7055/hub"),capabilities);
The RemoteWebdriver will attach to the first browser window running Webdriver and it will not create a new window.
Note: Run Webdriver (1) and RemoteWebdriver (2) in separate programs one-by-one).