Hi friends,
I am getting an error while handling the popup. I have attached the
code and following is the error message��

:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/
enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32
(NameError)
                from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
                from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
                from Login.rb:3
>Exit code: 1


My code is-->

------------------------------------------------------------------------------------------------------------------------------------------------------------
require 'watir'
require 'test/unit'
require 'watir/contrib/enabled_popup'

def startClicker( button , waitTime, user_input=nil )
  # get a handle if one exists
  hwnd = $ie.enabled_popup(waitTime)
  if (hwnd)  # yes there is a popup
    w = WinClicker.new
    if (user_input )
      w.setTextValueForFileNameField( hwnd, "#{user_input}" )
    end
    # I put this in to see the text being input it is not necessary to
work
    sleep 3
    # "OK" or whatever the name on the button is
    w.clickWindowsButton_hwnd( hwnd, "#{button}" )
    #
    # this is just cleanup
    w=nil
  end
end

def test_03_TC_RR_003
  $ie.text_field(:name, "userName").set("")
  $ie.button(:name, "Submit").click
   startClicker( "Ok" , 5)

------------------------------------------------------------------------------------------------------------------------------------------------------------

Please help me if anyone has any idea.

Thanks
Vikas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to