Y
Y
yermolovn2019-03-05 10:42:54
Google Chrome
yermolovn, 2019-03-05 10:42:54

Autocomplete and submit a web form. How?

Good afternoon! Task: there is a site (conditionally) site.ru, on the site there are 2 fields for entering text and a button for sending these filled fields to the server. It is necessary to automatically fill in these 2 fields every 30 minutes and press the submit button. How to do it directly from the browser? Chrome or Firefox. Perhaps there are some extensions / programs? I couldn't find it on my own in 2 hours :(
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2019-03-05
@yermolovn

In the browser console, type something like

setInterval(() => {
  const field1 = document.getElementById("#id-polya-1"); // 1-е поле формы
  const field2 = document.getElementById("#id-polya-2"); // 2-е поле
  const btn = document.getElementById("#btn"); // кнопка отправки

  field1.value = "значение в поле 1";
  field2.value = "значение в поле 2";
  btn.click();
}, 18e5);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question