Browser-window.capturePage


#1

Hello,
i want to know how to capture an element in the browser window and set the width and height of capture area?

CapturePage api


#2

What problem are you having with the documentation? I haven’t used that API but it looks like if you have the x, y, width and height of the element on screen you should be able to just pass those bounds to capturePage and get a NativeImage instance of the screen area. Are you asking how to get the bounds in the first place or what to do with them once obtained?


#3

i want to know how to pass these bounds to the function? and can pass the area that i want to capture, like selecting a div to be captured?