Take a screenshot of the scrollable inner div with Watir web browser

I already successfully save my screenshots of the whole page with this command:

@browser.screenshot.save "html-report/#{screenshot_name}"

However, the screen has changed, and now it contains a scrollable inner div containing important information that I want to capture.

Instead of using the above command to capture the entire page, is there a way to capture only the entire contents of this scrollable div?

Thank!

+4
source share
1 answer
+2
source

Source: https://habr.com/ru/post/1545141/


All Articles