Page 1 of 1

Image Maps

Posted: Thu Jul 12, 2007 8:37 am
by Hannes, Tech Support
Some websites use "image maps" for navigation. In the example below, the users were asked to select a canadian province by clicking a certain region on the map:

Image
(image taken from http://www.mls.ca/)

When automating these image maps, switching the click mode to "URL" is very helpful, as it works directly on the URLs that the image parts are associated to. And not on the image's full HTML code.

Here's an example macro automating a series of image maps:

Code: Select all

VERSION BUILD=6000707     
TAB T=1     
TAB CLOSEALLOTHERS     
SET !REPLAYSPEED SLOW
URL GOTO=http://www.mls.ca/     
SIZE X=876 Y=627    
TAG POS=1 TYPE=AREA ATTR=HREF:http://www.mls.ca/map.aspx?AreaID=6240   
TAG POS=1 TYPE=AREA ATTR=HREF:http://www.mls.ca/map.aspx?AreaID=8689   
TAG POS=1 TYPE=AREA ATTR=HREF:http://www.mls.ca/map.aspx?AreaID=6287   
TAG POS=1 TYPE=AREA ATTR=HREF:http://www.mls.ca/map.aspx?AreaID=6464   
TAG POS=1 TYPE=AREA ATTR=HREF:http://www.mls.ca/PropertySearch.aspx?AreaID=5634&MapURL=%3fAreaID%3d6464   
'Comment: New page loaded