How do i set window size for Headless Firefox?

How can I set window size for headless Firefox I tried with putting some data in Desired Capabilities but its not working. I made it work for Headless Chrome. And I tried also in Jenkins it works for Chrome but not for Firefox. Thank you


Any information about this?

If I set the desired capabilities of chrome (headless) to --window-size=1920,1080 it works but if I do the same to firefox(headless) it doesn’t get that window size. I’ve tried also --width and --height but without success. Am I doing something wrong?