A
A
azukizxc2021-09-08 15:23:31
Python
azukizxc, 2021-09-08 15:23:31

How to use text document in Selenium in python?

I want to make it so that a line (or several lines) is taken from a text document and thrown into a form on the site.
There are 2 forms in total.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-09-08
@Vindicar

Open the file, read the lines into a list. Group them if necessary.
Run selenium.
In a loop for each row/set of rows:

  • open the page you want
  • wait for the download
  • find the required form input field/fields,
  • insert a line/lines into the input field/fields,
  • submit the form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question