Armin,
Your approch is correct for this issue. However u
have to just modify few stuffs right here. Watir is
creating a new thread for the modular window, but the
old thread is not getting terminated. Thats the
reason why ur finding these problems. Now the work
around is that create a new thread in the beginning of
the process with a large timeout of say 15 to 20
seconds and then click on the object to get the
modular window. So that by that time it would have
created a new thread which is already running in the
beginning and then as soon as it gets that modular
window the new thread performs the operation which is
required. If in case if you find any difficulties in
doing that i think i'll write one script which does
that and send u.
Bye
Sathya Shankar
--- Armin Roehrl <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> I have to automatically monitor a "buggy"
> webapplication,
> which requires an initial pop-up window
> authorisation to be
> filled out.
>
> My problem is that it works fine for a test
> application, but
> for my buggy application the script passes the
> authorisation,
> but the WindowHelper-Thread (a) never finishes. I
> tried to
> add a timeout to the logon method, but it did not
> work.
>
> Similar to the WindowLogonExample.rb in the
> unittestdir
> I use two threads.
>
> ..
> a = Thread.new {
> system('ruby LogonExtra.rb')
> }
> b = Thread.new {
> goto_login_page()
> }
>
> ..
> LogonExtra.rb looks like:
> --
> helper = WindowHelper.new
> helper.logon('Cognos', 'xxx', 'xx')
> --
>
>
> Thank you for your help,
> -A
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general