JS function to fill data on website (with strict MVC)

В работе Опубликован 3 года (лет) назад Оплачивается при доставке
В работе Оплачивается при доставке

Please note, NO extra questions.

All instructions below. Please estimate your skills before you start.

I need JS function to fill out input fields data on website [login to view URL]

There are a number of input fields like passenger name, date of birth and so on.

Direct value setting doesn't work:

[login to view URL]('[aria-describedby="passenger-name"]')[0].value = 'SMITH';

(this doesn't work)

I suppose there are strict MVC (model-view-controller): changing view value doesn't change model value.

So I need a function that would act as a person's keyboard input done:

function setMyValue(field, val) { your code }

field - HTML DOM elemet

val - text value to be set

After filling data just press Continue button and it should go to the next step with data you entered by your function.

If not - goal is not achived.

This function will be injected on client side (with CJS Chrome extension).


Please follow in Chrome:

[login to view URL]

Departure city is Moscow, destination Paris. Date is May 20, for example.

Press search button

Next page: select ANY flight and ANY fare (book button).

Press "Enter Passenger"

The next step is filling the passenger information out. Here's the point.

Your task is to create a function to set the values of fields.

Create JS function and fill out by calling this function next fields: surname, name, passport, date of birth, expiration date (all dummy data), then click Continue.

If [login to view URL] accept your data - the problem is solved.

If you manage to do, you win :-)

For example.

Open [login to view URL] in Chrome

Press Ctrl+Shift+J and you will see Chrome Devtools Console

Insert this JS code and press enter.

So I need a function my_setValue but for [login to view URL]

function my_setValue(el, v) {

[login to view URL] = v;


var el = [login to view URL]('input[type="text"][aria-label]')[0];

my_setValue(el, 'Hello world!');

[login to view URL]('input[type="submit"]')[0].click();

Please note: this construction does NOT work in [login to view URL]


ID проекта: #23767344

О проекте

3 заявок(-ки) Удаленный проект Последняя активность 3 года (лет) назад



Hello,How areyou? I read your requirement carefully and I understood what do you want.I have rich experience in Javascript and I am ready to start now.I can complete your project in a short [login to view URL] me. thanks

$50 USD за 3 дней(-я)
(0 отзывов(-а))

3 фрилансеров(-а) готовы выполнить эту работу в среднем за $50


Greetings, My name is Page and I have been working from last 8 years in IT field. I am very much interested in your project and would like to invite you for further discussion over chat board. Waiting for your positi Больше

$50 USD за 7 дней(-я)
(8 отзывов(-а))