Module: Bewildr::ControlTypeAdditions::WindowAdditions
- Defined in:
- lib/bewildr/control_type_additions/window_additions.rb
Instance Method Summary collapse
-
#open? ⇒ Boolean
Returns true if the window is open, false if it’s not.
-
#wait_for_close ⇒ Object
Waits up to 30 seconds for the window to close.
Instance Method Details
#open? ⇒ Boolean
Returns true if the window is open, false if it’s not
7 8 9 |
# File 'lib/bewildr/control_type_additions/window_additions.rb', line 7 def open? exists? end |
#wait_for_close ⇒ Object
Waits up to 30 seconds for the window to close
12 13 14 15 16 |
# File 'lib/bewildr/control_type_additions/window_additions.rb', line 12 def wait_for_close Timeout::timeout(30) do sleep 0.2 while open? end end |