
JS function to fill data on website (with strict MVC). Not difficult but sophisticated.
$100 USD
Оплачивается при доставке
Please note, NO extra questions.
All instructions below. Please estimate your skills before you start: it seems simple but it's sophisticated.
So, I need JS function to fill out input fields data on website [login to view URL]
The purpose is automatization routine keyboard input on client side.
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).
Instructions.
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 and Continue button is your milestone!
This is third party site, so I don't have access to the servers.
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 проекта: #23784494
О проекте
Поручен:
Некоторыми успехами удалось установить полям Имя и Фамилию. Могу продолжить работу, если интересно. С уважением, Иван.
5 фрилансеров(-а) готовы выполнить эту работу в среднем за $100
Hi , i can write the function to do as you want. It needs to be moreAsync to be functional. Let's talk in details if you are interested .
I have extensive experience in the domains of Neural Network, Python, Matlab, Natural Language Processing, Asterisks PBX, Linux, Image Recognition & Artificial Intelligence, Recommender Systems, Machine learning, Dat Больше