try this with using autoit
require 'win32ole'
$autoit = WIN32OLE.new('AutoItX3.Control')
ie.frame(:index, 3).button(:id,'#ICSave').focus
$autoit.Send("{ENTER}") # it will perform your onclick event
sleep(5)
txt = ie.clickprompt()
On Tue, Sep 21, 2010 at 4:42 AM, sivam <[email protected]> wrote:
> Hi To All,
>
> I am using the following code for clicking the pop up message
> ie.frame(:index, 3).button(:id, '#ICSave').click_no_wait
> txt = ie.clickprompt()
> puts txt
> It is working fine. If i change that code to
> ie.frame(:index, 3).button(:id,
> '#ICSave').fire_event("onclick")
> txt = ie.clickprompt()
> puts txt
> this one. Now it is not working. The code is working only if it has
> click_no_wait.
> But i want to use for fire_event. Do you have any solution?
>
> Thanks in advance
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: [email protected]
> To unsubscribe:
> [email protected]<watir-general%[email protected]>
>
--
RAJIV KUMAR
<http://rajivkumarnandvani.wordpress.com/>
<http://learnqtphelp.blogspot.com/>
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
You received this message because you are subscribed to
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]