A
A
aqau1232022-01-27 00:35:29
selenium
aqau123, 2022-01-27 00:35:29

How to take a screenshot of an individual Selenium post?

There is a task - to collect screenshots of group posts on Facebook, is it possible to somehow collect the screenshot of an individual web element right away?
In general, after sitting and thinking, I found a solution - just hang a border color on the post, and then cut everything that is behind this stroke using cv2.
Maybe there are some easier and more beautiful solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2022-01-28
@aqau123

aqau123 there is a handy method in python
screenshot_as_png
https://www.geeksforgeeks.org/screenshot_as_png-el...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question