Найдите исполнителя для вашего проекта прямо сейчас!
Разместите заказ на фриланс-бирже и предложения поступят уже через несколько минут.

Написать код на JS исполняемый через консоль браузера,который корректно заполнит два поля 

с срабатыванием обработчика событий на сайте.Пробовал заполнять так:

  • function inp(X) { var Xinput = document.querySelector("div.style_formWrapper__4HNPu > div.style_root__3UAOP.style_payout__bYLWA > label > input");
  • setTimeout(() => {
  • Xinput.dispatchEvent(new Event('focus'));
  • Xinput.value = (X).toFixed(2);
  • Xinput.dispatchEvent(new Event('blur'));
  • }, 100);
  • }
  • inp(3.14);
  • function inpX(X){
  • var Xinput = document.querySelector("div.style_formWrapper__4HNPu > div.style_root__3UAOP.style_payout__bYLWA > label > input");
  • setTimeout(() => {
  • const Xinput = document.querySelector("div.style_formWrapper__4HNPu > div.style_root__3UAOP.style_payout__bYLWA > label > input");
  • Xinput.focus();
  • document.execCommand('selectAll');
  • document.execCommand('delete');
  • document.execCommand("insertHTML", false, X);
  • }, 500);
  • }
  • inpX(1.25);
  • function inpB(B){
  • var Binput = document.querySelector("div.style_formWrapper__4HNPu > div.style_root__3UAOP.style_betAmount__10FpL > label > input");
  • setTimeout(() => {
  • const Binput = document.querySelector("div.style_formWrapper__4HNPu > div.style_root__3UAOP.style_betAmount__10FpL > label > input");
  • Binput.focus();
  • document.execCommand('selectAll');
  • document.execCommand('delete');
  • document.execCommand("insertTEXT", false, B);
  • }, 100);
  • }
  • inpB(0.00001111)
  • поле заполняется,но не происходит событие ввода в input

    год назад
    guest_16774946826347
    год в сервисе
    Был
    год назад