You don't. The WebDriver API doesn't support attaching to an existing browser 
yet, so watir-webdriver can't provide this functionality either. Additionally, 
a large use case for attaching to an existing browser window is in manipulating 
popup browser windows[1], and WebDriver does provide a Window API for that 
purpose. How watir-webdriver exploits that API, I couldn't say.

--Jim

[1] Disclaimer: I don't mean to suggest that there aren't other use cases for 
the .attach method, or that popup windows are the most important use case for 
that API, or even that it's the use case you're trying to solve. I'm just 
presenting the state of things as they are in WebDriver. Patches, as always, 
gratefully received.

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to