Closed

Need Help in Creating Macro Script for imacro for Firefox?

I want to change my static website to dynamic by saving information into database.

This is the Sample code from my static website.

Sample code for one page:

Japan

Apple

Apricot

Avocado

Korea

Banana

Blackberry

Malaysia

Cherry

Dragonfruit

Eggplant

Kiwi fruit

I want to save information into Table into two Columns Country and Fruits like this

Country Fruits

Japan Apple

Japan Apricot

Japan Avocado

Korea Banana

Korea Blackberry

Malaysia Cherry

Malaysia Dragonfruit

Malaysia Eggplant

Malaysia Kiwi fruit

i have a web form page through which i am saving information successfully into my database.

Here is my current macro code that copy data into it but there is problem that it saves Same Country with all Fruits, Because of position tag.

Current Macro Code:

VERSION BUILD=7601105

TAG POS={{!LOOP}} TYPE=A ATTR=HREF:../fruits/* EXTRACT=TXT

TAB T=2

TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:[url removed, login to view] ATTR=NAME:fruit CONTENT={{!EXTRACT}}

TAB T=1

SET !EXTRACT NULL

TAG POS=1 TYPE=DIV ATTR=CLASS:country&&TXT:* EXTRACT=TXT

TAB T=2

TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:[url removed, login to view] ATTR=NAME:country CONTENT={{!EXTRACT}}

TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:[url removed, login to view] ATTR=*

TAB T=1

SET !EXTRACT NULL

I want to know is there any possible way that the program checks the position of fruits URL and use the country DIV TAG above it.

or if anyone has best solution then please provide it.

Mozilla Firefox 20

imacro for Firefox 7.6.0.2

VERSION BUILD=7601105

I think this project will not take more than an hour or two.

My Maximum budget for this project is $15.

Thank you.

Skills: Anything Goes, Firefox, Javascript

See more: pos in php code, php script null, mozilla firefox website, creating website url, creating php table, attr php, imacro loop, tag the text in a web, malaysia php, kiwi, cherry a, banana, apricot, apple script, database copy script, extract javascript, javascript table copy, apple type project, web data extract firefox, web data table extract, build static version, save div, apple program script, javascript code insert php, php macro

About the Employer:
( 8 reviews ) New Delhi, India

Project ID: #4347735

2 freelancers are bidding on average $10/hour for this job

SohanChotia

Hello Sir, Browser Automation developer is ready for this. Check my profile in PM. Thanks

$10 USD / hour
(1 Review)
2.0
inoshalakmali91

I can help you for this task please see my PM...............

$7 USD / hour
(0 Reviews)
0.0
pradeeppg

I have worked on Firefox Extension - Javascript XPCOM for Mozilla Firefox. The component was used for browser (Firefox) automation. Imacro is also a a Firefox extension, but my component was more robust and included J More

$10 USD / hour
(0 Reviews)
0.0