I need an IMacro written in VBScript which reads information from a text file and passes the information to a browser window.
If an error occurs, the information about the error must be logged in a seperate text file.
Specifically, the IMacro is used to install domain names / subdomain names via a web page.
e.g. A person goes to [[login to view URL]][1] and then fills out five pieces of information and then presses a submit button and the domain/ subdomain is installed.
I have already got the Imacro working but I want to be able to call it via a VBS script so I can log errors.
## Deliverables
Here is a copy of the IMacro which I need to be called from the VBScript.
It currently reads from a CSVFile and adds the domain via a web interface.
I want the VBScript to call this Macro and if any errors occur **_installing any of the domains_** from the list (Website times out, error with the domain syntax) then the domain is logged in a seperate log file so I can view these errors at a later date and retry installing the domain.
VERSION BUILD=6000818 RECORDER=FX
TAB T=1
'Put one domain per line.
'Column 1 = the domain name
'Column 2 = the title for the domain/ website
'Column 3 = the username for the domain
'Column 4 = the base URL for the domain
'Column 5 = the domain owner ID (<- A number)
'Column 6 = the password for the domain.
CMDLINE !DATASOURCE [login to view URL]
SET !DATASOURCE_COLUMNS 6
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=[login to view URL]
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:Domains ATTR=ID:domain CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:Domains ATTR=ID:base_url CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:Domains ATTR=ID:title CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:Domains ATTR=ID:domain_username CONTENT={{!COL3}}
TAG POS=1 TYPE=SELECT FORM=NAME:Domains ATTR=ID:owner_ID CONTENT=${{!COL5}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:Domains ATTR=ID:submit&&VALUE:Add<SP>Domain