If Watir-webdriver is interacting with a child window that then closes itself, 
Watir-webdriver will not be able to return to the parent window and continue. 
Instead, the error Selenium::WebDriver::Error::NoSuchWindowError is thrown.

It's possible to see this via running the following script:

```ruby
require 'watir-webdriver'
@b = Watir::Browser.new :chrome
@b.goto 'ckeditor.com/demo#full'
@b.div(id: 'cke_editor1').link(title: 'Link').click
@b.link(title: 'Browse Server').wait_until_present
@b.link(title: 'Browse Server').click
@b.window(title: 'CKFinder').use { 
  @b.frame(title: 'CKFinder').link(id: 'r0').right_click
  @b.frame(title: 'CKFinder').frame(id: 'cke_22_frame').wait_until_present 
  @b.frame(title: 'CKFinder').frame(id: 'cke_22_frame').link(id: 
'cke_200').click
}
```
More discussion here:

http://stackoverflow.com/questions/15844105/a-child-browser-window-closing-itself-apparently-breaks-watir-webdrivers-link-t

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/196
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to