How to run the same macro on different domains?
Posted: Mon Dec 18, 2006 8:09 am
Question:
Lets say there are 2 or more different domains having the same
webform or webpage,
Domain1.com/page.html = Domain2.com/page.html = Domain3.com/page.html The 3 webpages above are similar and have the
same details to be filled in, just clicking here and there selecting
some options, but they are on different domains. Is your macro able
to fill them using the same script?
Answer:
(1) If the web pages are very similar and the only difference is a different domain, then the macro will run without changes on all domains. You only need to remove the URL GOTO=.... command manually. This command was inserted during macro recording. After this is done, then you manually go to one of the domains and start the macro.
(2) Alternatively, if there are differences between the forms, for example different link names or input boxes, you can still create one macro that works for all websites:
(2a) Use the wildcard * to make the TAG command fit for all your domains
Example: On domain1.com/page.htm you get
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:newsletterform ATTR=NAME:Email CONTENT=test@test.com
On domain2.com/page.htm you get
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:news ATTR=NAME:Email CONTENT=test@test.com
=> Create this TAG command
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:*news* ATTR=NAME:Email CONTENT=test@test.com
(2b) Assume, on domain3.com/page.htm you have
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:subscribe ATTR=NAME:Email CONTENT=test@test.com
Then you can use two lines and add the "ERRORIGNORE" command:
SET !ERRORIGNORE YES
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:*news* ATTR=NAME:Email CONTENT=test@test.com
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:subscribe ATTR=NAME:Email CONTENT=test@test.com
=> iMacros will use the line that works and ignores the other.
Lets say there are 2 or more different domains having the same
webform or webpage,
Domain1.com/page.html = Domain2.com/page.html = Domain3.com/page.html The 3 webpages above are similar and have the
same details to be filled in, just clicking here and there selecting
some options, but they are on different domains. Is your macro able
to fill them using the same script?
Answer:
(1) If the web pages are very similar and the only difference is a different domain, then the macro will run without changes on all domains. You only need to remove the URL GOTO=.... command manually. This command was inserted during macro recording. After this is done, then you manually go to one of the domains and start the macro.
(2) Alternatively, if there are differences between the forms, for example different link names or input boxes, you can still create one macro that works for all websites:
(2a) Use the wildcard * to make the TAG command fit for all your domains
Example: On domain1.com/page.htm you get
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:newsletterform ATTR=NAME:Email CONTENT=test@test.com
On domain2.com/page.htm you get
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:news ATTR=NAME:Email CONTENT=test@test.com
=> Create this TAG command
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:*news* ATTR=NAME:Email CONTENT=test@test.com
(2b) Assume, on domain3.com/page.htm you have
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:subscribe ATTR=NAME:Email CONTENT=test@test.com
Then you can use two lines and add the "ERRORIGNORE" command:
SET !ERRORIGNORE YES
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:*news* ATTR=NAME:Email CONTENT=test@test.com
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:subscribe ATTR=NAME:Email CONTENT=test@test.com
=> iMacros will use the line that works and ignores the other.