#6 ClickRadioButton doesn't work after 1st form

closed
nobody
None
5
2005-02-12
2004-03-25
Anonymous
No

Using the following script and HTML file, ClickRadioButton
won't click on any radio button because they're on the
2nd form in the HTML. Remove the 1st fake form and
this specified script works. I've simplified the HTML for
demonstration purposes.

After looking at SAM.pm, it appears that the same
problem may be present for checkboxes and other types.

SCRIPT
use Win32::OLE;
use Win32::SAM;

$| = 1;
my $URL = "radiotest.html";
my $IEDocument;
my $seconds;

$Win32::OLE::Warn = 3;

StartIE();
Navigate($URL);
WaitForBusy();
$IEDocument = GetDocument();
$seconds = WaitForDocumentComplete();
WaitForBusy();
ClickRadioButton("TEST",1) || die "This click doesn't
work\n";

HTML FILE
<form name="fake">
</form>

<form name="real">
<input type="radio" name="TEST" value="1">Male
<input type="radio" name="TEST" value="2">Female
</form>

E-mail: KAlsteens@comcast.net

Discussion

    • status: open --> closed
     
  • Logged In: YES
    user_id=523315

    Had to move the return statement