The screenshot API manages to capture an image from the correct position of the browser wherever it may appear on the desktop and whatever monitor it may be displayed on.
However, the video capture facility does NOT – all it does is record the same screen/monitor where the browser is first launched which is not necessarily where it may end up.
Background info:
My AUT is a large and fairly complex ASP.NET application which uses popup windows which can appear in many and varied positions over the entire desktop screen space. When a failure occurs, the recorded video rarely shows the screen of interest – in development testing, it shows me a nice rendition of Katalon Studio, which, frankly, is pretty useless.
Suggestion:
If Katalon were to use something like OBS (Open Broadcaster Software) then I am sure WebUI could be extended to provide APIs to control video capture from within Test Cases (or, if that proves too difficult, set properties for OBS in a project).
Links:
docs Welcome to OBS Studio’s documentation! — OBS Studio 27.2.4 documentation