R
R
Regretful2015-09-01 09:10:58
Python
Regretful, 2015-09-01 09:10:58

Select div on click?

Good day.
How to implement highlighting a div block on click and then sending it to the handler?
An example of this is highlighting a message on VKontakte. Screenshot example.5e7471e7af50442b9314aa46f36162dd.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya, 2019-03-19
@MatthewAllDev

Try to use the threading module for these purposes. For me, in most cases, it closes all questions on multithreading.

V
Vlad Grigoriev, 2019-03-19
@Vaindante

If you want to parse only 2 sites, then it's easier to split this script into 2 and run in parallel.
If you have many more such tasks, then use threads and in order not to manually create new windows (driver = webdriver.Chrome) and not invent a bicycle for them, it is better to immediately look towards selenoid or its analogues.

P
Pavel, 2015-09-01
@regretful

the simplest thing that came to mind - clicked on the block, hung a class on it, when you clicked on the "send" button, found an element with the specified class, read the id, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question