Page 1 of 1

Creating Personalized Google Map

Posted: Mon Oct 13, 2008 12:39 am
by Hannes, Tech Support
google.map.png
google.map.png (233.02 KIB) Viewed 6199 times


Creating a new personalized Google map tricks the iMacros browser in two ways:

1) The browser will not recognize the page being fully loaded
2) The text fields for the map's title and description are not standard HTML form elements

Solutions:
1) Make the macro (temporarily) ignore timeout errors and shorten the timeout value.
2) Use DS for filling these fields (including the deletion of the default title that Google presents).

Here's the macro (you will need to be logged in to Google):
Code: Select all
VERSION BUILD=6221002
TAB T=1
TAB CLOSEALLOTHERS
'work around iMacros not recognizing that the page is fully loaded
SET !ERRORIGNORE YES
SET !TIMEOUT 5
URL GOTO=http://maps.google.com/maps
SET !ERRORIGNORE NO
SET !TIMEOUT 60
'end of workaround
TAG POS=1 TYPE=SPAN ATTR=TXT:My<SP>Maps
'New page loaded
'New page loaded
'New page loaded
TAG POS=1 TYPE=A ATTR=TXT:Create<SP>new<SP>map
TAG POS=2 TYPE=INPUT:RADIO FORM=NAME:NoFormName ATTR=NAME:ms_index_status&&VALUE:on CONTENT=YES
WAIT S=2
'delete old title using DS
DS CMD=MOVETO X=170 Y=342   
DS CMD=LDOWN X=172 Y=340   
DS CMD=LUP X=172 Y=340   
DS CMD=MOVETO X=169 Y=338   
DS CMD=MOVETO X=160 Y=335   
DS CMD=LDOWN X=159 Y=335   
DS CMD=MOVETO X=7 Y=339   
DS CMD=LUP X=-1 Y=337   
DS CMD=KEY X=7 Y=339 CONTENT={BACKSPACE}
' enter new title and description usign DS
DS CMD=MOVETO X=85 Y=329   
DS CMD=LDOWN X=85 Y=329   
DS CMD=LUP X=85 Y=329   
DS CMD=KEY   CONTENT=title 
DS CMD=MOVETO X=79 Y=388   
DS CMD=LDOWN X=79 Y=388   
DS CMD=LUP X=79 Y=388   
DS CMD=KEY   CONTENT=description 


[Edit: Added annotated screenshot]