I can't actually reproduce the issue. I'm getting `UnknownFrameException` when
using Firefox and or `UnknownObjectException` when using Chrome.
However, I suppose you should resolve the problem by waiting until your window
closes. Try running this code (only last line has changed):
```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
}.wait_while_present
```
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/196#issuecomment-16152380
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development