Hi
Jim,
a)
Include the definition of startClicker (available in
winClicker.rb)
def startClicker( button , waitTime =
0)
w = WinClicker.new
longName = $ie.dir.gsub("/" , "\\" )
shortName = w.getShortFileName(longName)
c = "start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button } #{ waitTime} "
puts "Starting #{c}"
w.winsystem(c )
w=nil
end
w = WinClicker.new
longName = $ie.dir.gsub("/" , "\\" )
shortName = w.getShortFileName(longName)
c = "start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button } #{ waitTime} "
puts "Starting #{c}"
w.winsystem(c )
w=nil
end
b)
Before you click on delete call startClicker, say startClicker("OK")
c) Call the button click for Delete
Hope
this helps you, all the best
Regards,
Jamuna
Nithyanandam
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jim che
Sent: Tuesday, September 20, 2005 1:03 PM
To: [email protected]
Subject: [Wtr-general] Help, how to click the button of the windows that poped up by _javascript_?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jim che
Sent: Tuesday, September 20, 2005 1:03 PM
To: [email protected]
Subject: [Wtr-general] Help, how to click the button of the windows that poped up by _javascript_?
Hi all
the ruby code was as below
ie.link(:text,"Delete").click
if $au3.WinExists("Microsoft Internet Explorer")
log("win exist")
sleep(1)
$au3.Send("{TAB 1}{ENTER}")
else
log("win not exist")
end
if $au3.WinExists("Microsoft Internet Explorer")
log("win exist")
sleep(1)
$au3.Send("{TAB 1}{ENTER}")
else
log("win not exist")
end
After click the link "Delete" a small window will pop up by script
I want to click the "ok" button of that small window but it can't
The system will log the "win exist" but can't send the operation "enter" to
the small window.
How can I do this?
Thank you
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
