Module: Watir::WindowSwitching
- Included in:
- Browser
- Defined in:
- lib/watir-webdriver/window_switching.rb
Defined Under Namespace
Classes: NoMatchingWindowFoundException
Instance Method Summary collapse
Instance Method Details
#window(*args, &blk) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/watir-webdriver/window_switching.rb', line 17 def window(*args, &blk) win = filter_windows(args, windows, :find) if win && block_given? win.use(&blk) end win or raise NoMatchingWindowFoundException, args.inspect end |