sub ClickAClassNameHyperlink { #$className, $popup, $CheckForMessageBox
Description: Clicks on a Class Link
How To:
Find the Link that is named by a Class
Example:
<a href="mred.html" class="bodylink">Mr. Ed</a>.
If you want to click on the Mr. Ed link.
ClickAClassNameHyperlink("Mr. Ed");
Cookbook recipe
use Win32::OLE; use Win32::SAM; #use Win32::Slingshot;
$| = 1; my $URL = "http://samie.sourceforge.net/ClassLink.html"; my $seconds;
$Win32::OLE::Warn = 3;
StartIE(); $seconds = Navigate($URL); print "ClassLink.html page took $seconds seconds to load\n"; ClickAClassNameHyperlink("bodylink");