Image Maps

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.

Moderator: iMacros Moderators

Image Maps

by Hannes, Tech Support on Thu Jul 12, 2007 1:37 am

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
Hannes, iOpus Support
Hannes, Tech Support
 
Posts: 2120
Joined: Thu Sep 21, 2006 6:27 am

Return to How-To's and useful iMacros: All other topics

Who is online

Users browsing this forum: No registered users and 2 guests

-->