Fill in a form on an external webpage using some specific data - 29/04/2018 11:35 EDT
£50-150 GBP
ที่ทำเสร็จแล้ว
โพสต์ ประมาณ 6 ปีที่ผ่านมา
£50-150 GBP
ชำระเงินเมื่อส่งงาน
I need a script, written in JavaScript (and jQuery), to fill in the form fields on this page: [login to view URL]
The script will eventually be integrated into a Chrome/Firefox extension and automatically attached to the page. I have a template extension with the a blank script in, so you can use that and start writing the form-filling code straight away, without needing to have any knowledge on developing extensions.
The script will be given information in a variable called `data`. An example set of information is below (this will be pasted at the top of your script and used to fill in the form fields while creating the script):
var data = {
'first_name': 'hello',
'last_name': 'world',
}
Each form field has to be filled with the relevant piece of data stored in `data`. For example, the form field asking for your postcode will be filled in with `data['postcode']`.
A list of all variables in `data` will be given to you if you accept the job. The variable names are self-explanatory so you should be able to work out what fields they correspond to.
When writing the code, please work your way down the webpage in order the fields appear. The variables are in no particular order.
Next to each variable states the data type.
Some variables there will be a limited number of values, those possible answers are listed indented underneath the variable.
The code must also be well-commented and indented.
An example piece of code and what it should look like is attached (note that that is for a different page).
For some fields, when it is filled in a new field may appear. All of the fields that could pop up however are in the variable list, so there will be a variable for them.
As for the test data sets, I will provide you with one to test your script as you go along. You can edit it, again using the information from the list and possible options, until you have finished the script. Once you have, I'll test it with a number of other bits of randomly generated data to ensure that it has been written properly and that all fields and combinations have been covered.
Note than on the form itself you can skip filling in the estimate bit of the "Do you have an energy bill to hand?" question, since the variable to fill that in will always state how much energy is used or spent (hence no need to estimate).
Greetings! I am an expert Web Scraper with sound knowledge of scraping data using Javascript/JQuery. I have read the details and would like to pursue this project. Hoping to hear.