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!
source
share