0

I am trying to make a screenshot of window tab via selenium to see all elements in a table to make sure that all data is valid and presented. I have a div element which is scrollable and is inside a page. It doesn't change the height of the page when scrolling this table. That's why when I take a screenshot I see only part of the rows.

Is it possible to zoom out window tab with javascript until all rows in a scrollable div are visible?

  • Does this answer your question? [Take screenshot of full page with Selenium Python with chromedriver](https://stackoverflow.com/questions/41721734/take-screenshot-of-full-page-with-selenium-python-with-chromedriver) – JaSON Mar 23 '22 at 19:34
  • Provided solution with document.body.parentNode.scrollHeight doesn't work in my case since it's equal to window.innerHeight. Setting hardcoded value instead is an unreliable walk-around – Oleksandr Balkashyn Mar 24 '22 at 12:49

0 Answers0