class AePageObjects::MultipleWindows::Window
Attributes
handle[R]
Public Class Methods
new(registry, handle)
click to toggle source
Calls superclass method
# File lib/ae_page_objects/multiple_windows/window.rb, line 10 def initialize(registry, handle) @registry = registry @handle = handle @registry.add(self) super() end
Public Instance Methods
close()
click to toggle source
# File lib/ae_page_objects/multiple_windows/window.rb, line 24 def close if WindowHandleManager.close(@handle) self.current_document = nil @registry.remove(self) end end
switch_to()
click to toggle source
# File lib/ae_page_objects/multiple_windows/window.rb, line 19 def switch_to WindowHandleManager.switch_to(handle) current_document end