Hello guys,

Our guys are using DevEx controls.
I have a image icon, if I click on that icon I will get a popup
message with "Yes", "No" buttons.

Problem here is, I am not able to see popup when I use
"click_no_wait". I do not see any error messages either.
When I use "click" method I am able to see popup but problem here is I
could able to click on "Yes" button. There is not reponce..even if I
use 'AutoItX3'

I have tried all kinds of option and tired of it now.

Any help on this is greatly appreaciated.

Here is my sample code I tried...
======================================
def jsClick( ie, button, user_input=nil)
  begin
 waitTime=30
 hwnd = ie.enabled_popup(waitTime)
  if (hwnd)
  w = WinClicker.new
   if ( user_input )
   w.setTextValueForFileNameField(hwnd, "#{user_input}")
   end
   sleep 3

    w.clickWindowsButton_hwnd(hwnd, "#{button}")
    w=nil
  end
 rescue Exception => e
 puts e
 end
end

require 'watir'
require 'watir/ie'
require 'win32ole'
require 'watir\contrib\enabled_popup'
ie=Watir::IE.start("C:\\Satish_Info\\Project_info\\Watir\\Watir_Scripts
\\Work\\Tele-Works Console.mht")
#ie=Watir::IE.start("C:\\Documents and Settings\\spanchumarthy\\Desktop
\\Tele-Works Console.mht")
sleep 10
ie.image(:id,
'ctl00_contentChildWindow_secFieldMappings_ctl02_menu_secFieldMappings_DXI3_Img').click
autoit = WIN32OLE.new('AutoItX3.Control')
autoit.ControlClick("VBScript: Confirmation",'', 'Yes')
autoit.Send("{Alt}")
autoit.Send("{y}")


#ie.table(:id,
"ctl00_contentChildWindow_secFieldMappings_ctl02_menu_secFieldMappings").image
(:src=>/FieldMappingAdd.png/).click_no_wait
#ie.image(:id,
'ctl00_contentChildWindow_secFieldMappings_ctl02_menu_secFieldMappings_DXI3_Img').click_no_wait
#ie.image(:src=>/FieldMappingAdd.png/,:index=>1).click_no_wait
#ie.button(:id,
'ctl00_contentChildWindow_secFieldMappings_ctl02_menu_secFieldMappings_DXI3_I').click_no_wait
#ie.image(:src,/FieldMappingAdd.png/).click_no_wait
#sleep 10
#jsClick( ie, "Yes")
======================================

Thank you very much,
Satish.

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