I am experiencing an issue when running tests on docker.
I have set the headless execution settings in Katalon to a windows size of 1080x720 via the Project Settings → Desired Capabilities → Chrome(Headless).
However when I run these tests in docker the windows size is different. How Can I set the correct size in Docker please?
But it seems to be a setting with the docker container and xvfb that is missing to set the screensize of the container. Do you know anyone that could help?
it is not enough just to set the browser windows size via capabilities or through the driver methods, but the virtual display size has to be set too, using xfvb-run. without specified size i think it will default to 800 x 600
however, xfvb is needed when using normal browser. with the headless one, the browser size can be set though the driver. WebUI.SetViewPortSize should do the trick, it was a bug in 6.something but according to @Zarashima the issue was fixed.