Hi All,

My scenario is to click a image that results in a pop up. I want to
click OK button of this Pop up. This is a straight scenario without
much complexity still the script is not working and the pop up remains
as it is.

Here is my sample script
   require 'watir'
   require 'win32ole'
   require 'watir/ie'
   require 'watir\contrib\enabled_popup'

$ie = Watir::IE.new
$ie.goto 'some url/'
$ie.button(:src, 'http://img1.yatra.com/yatra_blue-theme/images/common/
spacer.gif').click
sleep 10
   if $ie.enabled_popup
  puts 'inside if loop'
hwnd =$ie.enabled_popup(10)
puts hwnd
w = WinClicker.new
w.makeWindowActive(hwnd)
w.clickWindowsButton_hwnd(hwnd,"OK")
end

This script after clicking the image hangs and after this there is no
action performed. The pop is a simple pop up with an OK button.

Guys please tell me where I am going wrong. Any help will be highly
appreciated

Thanks
Namit

--~--~---------~--~----~------------~-------~--~----~
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