vendor/gems/gems/firewatir-1.2.1/firewatir.rb
#
# Description:
#   Used for attaching pop up window to an existing Firefox window, either by url or title.
#   ff.attach(:url, 'http://www.google.com')
#   ff.attach(:title, 'Google') 
#
# Output:
#   Instance of newly attached window.
#

Used for attaching pop up window to an existing Firefox window, either by url or title.

Instance of newly attached window.
Used for attaching pop up window to an existing Firefox window either by url or title . Instance of newly attached window .
def attach(how, what)
            window_number = find_window(how, what)
            if(window_number == 0)
               raise NoMatchingWindowFoundException.new("Unable to locate window, using #{how} and #{what}")  
            elsif(window_number > 0)
                @@window_stack.push(@window_title)
                @@window_stack.push(@window_url)
                @@current_window = window_number.to_i
                set_browser_document()
            end    
            self
        end
def attach ( how , what ) window_number = find_window ( how , what ) if ( window_number == 0 ) raise NoMatchingWindowFoundException . new ( "Unable to locate window, using #{how} and #{what}" ) elsif ( window_number > 0 ) @@window_stack . push ( @window_title ) @@window_stack . push ( @window_url ) @@current_window = window_number . to_i set_browser_document ( ) end self end
Description:
Used for attaching pop up window to an existing Firefox window, either by url or title.
Description : Used for attaching pop up window to an existing Firefox window either by url or title .
# Push the window_title and window_url of parent window. So that when we close the child window
 # appropriate handle of parent window is returned back.

how
<not_specific>
what
<not_specific>