I made selector and area optional arguments. In the implementation, I think that the pull requests shows the true intention of the screenshot region.
If full: true, It tries to capture full screenshot with full size browser window and then viewport if the full size is not accurate.
If full: false, :selector is preferred if defined. Then :area. Otherwise, the default will be the viewport.
Applying default scale (1.0) will not affect the result anyway.
Fixes #389
I made
selector
andarea
optional arguments. In the implementation, I think that the pull requests shows the true intention of the screenshot region.If
full: true
, It tries to capture full screenshot with full size browser window and then viewport if the full size is not accurate. Iffull: false
,:selector
is preferred if defined. Then:area
. Otherwise, the default will be the viewport.Applying default scale (1.0) will not affect the result anyway.