N
N
Nik Helnik2021-12-10 19:47:17
Python
Nik Helnik, 2021-12-10 19:47:17

How to take a screenshot of an element using Python Selenium?

How to take a screenshot of an element on a page using Python Selenium? For example, I want to take a screenshot of these two elements on the page with the specific heat of materials. How to do it?
61b3848f57736348410590.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2021-12-10
@fox_12

There was already such a question https://qna.habr.com/q/1086480
On the topic - open selenium in a browser with the specified window sizes, take a screenshot, and crop what you are looking for.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question