
# Script is designed to test a Long Distance Voice flow using DVA technologies
# Convergys
#
#Initials                    Date            Summary
#CLS                        10/04/05          Checked in first draft
#
#List of to do's or ideas for improvement
#  
#  
#


# BEGIN - LD Voice Guided Flow

  #includes:
    require 'watir'   # the watir controller 
    require "rexml/document" 
    require "date" 
    require '/apps/ruby/lib/ruby/1.8/test/unit'
    require '/apps/ruby/lib/ruby/1.8/test/unit/ui/console/testrunner'
    require 'watir/testUnitAddons'
    require 'watir/WindowHelper'
    include REXML 
    include Watir
    
    @mydir = File.expand_path(File.dirname(__FILE__)).gsub('/', '\\')

   puts "## Begin Test - Google Test flow"
   puts ""
   
   allpassed = true
   
   
   
class Google_Test < Test::Unit::TestCase
    include Watir
    
  
   def setup
   @ie = IE.new
   @ie.goto("http://www.google.com")
   
   end
   
   def test1
# User clicks on sign in link

            assert(@ie.link(:text, "Make Google Your Homepage!").exists?)
          
            @ie.link(:text, "Make Google Your Homepage!").click
            
# User clicks on the sign up link
      
#            @ie.show_all_objects
            
 
         
 #         @ie.capture_events
        
       def initialize( )
		  @autoit = WIN32OLE.new('AutoItX3.Control')
        end
        

        def push_alert_button()
		  @autoit.WinWait "Home Page", ""
		  @autoit.Send "{NO}"
	    end
  
      
        
        puts "I pressed the Cancel Button"


#           
   end
end

#   

#
# END - Google test 