Not sure what your error was. The code I posted works on WIN2K, It
did not work on XP
Please try this sample
# Reference:
http://www.rubytips.org/2008/05/13/accessing-windows-api-from-ruby-using-win32api-library/
require 'Win32API'
message = This is a sample Windows message box generated
Well, just do something like this:
# do something
# let's wait maximum of 10 minutes
wait_until(10*60) {browser.url =~ /part_of_new_expected_url/}
# do something else when the new url is set
Jarmo
On Aug 31, 1:33 am, byung jinuacad...@gmail.com wrote:
I put below code..
def
Not sure why you want manual stops but consider this:
def method_messagebox(txt,title,buttons)
On Aug 30, 11:54 am, byung jinuacad...@gmail.com wrote:
Is there a way to make Watir code to wait for user's click event??
I would like to run the Watir code.. and while it is running, wait
till
Ok... fat fingers so I continue
Consider this:
It will popup and OK msgbox
require 'dl'
def method_messagebox(txt,title,buttons)
puts ' * method_messagebox'
user32 = DL.dlopen('user32')
msgbox = user32[ 'MessageBoxA', 'ILLSI' ]
r, rs = msgbox.call(0,txt,title,buttons)
return r
end
#
in the call statement the
First value is an integer it should be Zero
Second Value is a string
Third Value is a string
Fourth value is an integer in the sample its a Zero
check your inputs
On Aug 30, 3:51 pm, byung jinuacad...@gmail.com wrote:
i get below error..
in 'call': can't convert
I put below code..
def method_messagebox(txt,title,buttons)
puts ' * method_messagebox'
user32 = DL.dlopen('user32')
msgbox = user32[ 'MessageBoxA', 'ILLSI' ]
r, rs = msgbox.call(0,txt,title,0)
return r
end
response = method_messagebox('Script is waiting for user to click
OK','Manual