Hey, I just now installed "1.8.6-26 Final Release". "click_no_wait"
worked like charm with this version.

"click_no_wait" does not work with "1.8.6-27"

I wasted one week on this.. :)

Thanks
Satish.


On May 18, 4:18 pm, satish <spanchumar...@gmail.com> wrote:
> 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.
>
> Anyhelpon 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").im­age
> (: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