Skip to content

Hide scrollbars

Alexandr D edited this page Oct 24, 2018 · 4 revisions

How to hide scrollbars at the screenshot

This is possible only when using built it core stategy ScreenshotMaker.
Just call method RemoveScrollBarsWhileShooting() before TakeScreenshot are called.

  • While taking a screenshot, the scrollbars will be hidden.
  • After taking the screenshot, the scrollbars will be visible again.

Code example:

var scmkr = new ScreenshotMaker();
scmkr.RemoveScrollBarsWhileShooting();
var arr = Driver.TakeScreenshot(scmkr);

Images example:


Clone this wiki locally