On Mon, Jul 22, 2013 at 5:17 PM, watir webdriver <
[email protected]> wrote:

> My code is returning all the texts present in the parent window.


You have to switch to the new browser window/tab. Something like this:

browser.window(:title => "annoying popup").use do
  browser.button(:id => "close").click
end

More information at http://watirwebdriver.com/browser-popups/

Željko
--
https://leanpub.com/watirbook

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