Class: AePageObjects::Window::Registry

Inherits:
Hash
  • Object
show all
Defined in:
lib/ae_page_objects/window.rb

Instance Method Summary collapse

Instance Method Details

#[](window_or_handle) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/ae_page_objects/window.rb', line 5

def [](window_or_handle)
  if window_or_handle.is_a?(Window)
    super(window_or_handle.handle)
  else
    super(window_or_handle)
  end
end

#add(window) ⇒ Object



13
14
15
# File 'lib/ae_page_objects/window.rb', line 13

def add(window)
  self[window.handle] = window
end

#remove(window) ⇒ Object



17
18
19
# File 'lib/ae_page_objects/window.rb', line 17

def remove(window)
  self.delete(window.handle)
end