[wtr-general] Re: waitr - problem with autoit WinActivate - fails at random

2010-01-13 Thread Alpinweis
://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups solution #3 (after some customization) works for me very consistently. On Jan 11, 7:29 pm, Alpinweis alpinw...@gmail.com wrote: I am using the following code taken from Watir Wiki on JS Popups:     def check_for_popups(title=Windows Internet

[wtr-general] Re: waitr - problem with autoit WinActivate - fails at random

2010-01-13 Thread Alpinweis
Tony, you can find the patch here: http://jira.openqa.org/browse/WTR-320 Need to manually apply the patch as the line numbers in the patch might not be correct for your version of watir (they are not for watir 1.6.5) The patch works fine for me with ruby one-click installer 1.8.6-27 on Win7

[wtr-general] waitr - problem with autoit WinActivate - fails at random

2010-01-12 Thread Alpinweis
I am using the following code taken from Watir Wiki on JS Popups: def check_for_popups(title=Windows Internet Explorer, button=OK, user_input=nil) popup = Thread.new { autoit = WIN32OLE.new('AutoItX3.Control') ret = autoit.WinWait(title,,60) if (ret == 1)