Selenium Webdriver take screenshot of viewport only

前端 未结 2 619
情话喂你
情话喂你 2021-01-21 21:54

I only need screenshots of the current viewport, particularly respecting the scroll position. Basically what the current Chrome driver does.

From what I\'ve read it seem

2条回答
  •  离开以前
    2021-01-21 22:30

    This is a frequently changing issue..

    AFAIK right now Chrome- and IEDriver both capture screenshots of the viewport only, while FFDriver captures a full-page screenshot (FF will change this in the future). See also my answer to this question.

提交回复
热议问题