HI,
YES UR RIGHT THANKS!!

REGARDS
SHALINI GUPTA

On 4/26/07, Angrez Singh <[EMAIL PROTECTED]> wrote:

Hi,

Few mistakes:
1. You are adding text to file called popup.txt and reading from test.txt

    def push_alert_button
>         @autoit.WinWait "Windows Internet Explorer", ""
>         text = @autoit.WinGetText "Windows Internet Explorer"
>         file = File.open("c:\\popup.txt", "w")
>         file.puts text
>         file.close
>         @autoit.Send "{ENTER}"
>     end
>
> >   # read file contents
> > > > > def read_js_popup_contents
> > > > >         file = File.open("c:\\test.txt")
> > > > >         lines = file.readline
> > > > >         while lines == ""
> > > > >             lines = file.readline
> > > > >         end
> > > > >         lines = file.readlines
> > > > >         file.close
> > > > >         return lines
> > > > >       end
> > > > >
> > > >
2. In push_alert_button why the title that you are searching for is
"Windows Internet Explorer"? It should be "Microsoft Internet Explorer" if
you are using IE 6.0? That could be the reason that pop is not getting
clicked. If you are using IE 7.0 then the code is fine. Otherwise change
it.

Let me know if changing made above made the code to work.

- Angrez

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to