If you want to click on the Request submit button.
$| = 1;
my $URL = "http://samie.sf.net/simpleform.html";
$Win32::OLE::Warn = 3;
$seconds = Navigate($URL);
print "simpleform.html page took $seconds seconds to load\n";
SetEditBox("age","about 2 years old now");
$seconds = ClickFormButton("infotest");
print "Answer Page took $seconds seconds to load\n";
The second parameter $popup is optional.
It tells samie that the FormButton is going to raise a popup window.
The third parameter $CheckForMessageBox is optional.
It tells samie that a message box will appear when this button is clicked.
With this paramter set to 1 samie will resume the process to react to the message box. This process must first be started with a call to VerifyMessageBox.
The fourth parameter $formname is optional. It is used when there is more than one form on a page
The fifth parameter $nowwait is optional. It is used when you don't want samie to call WaitForDocumentComplete
or WaitForDocumentCompleteForPopup after you click the button.