When new chrome headless mode is used the "--windows-size=width,height" argument doesn't work. For example: "--headless=new", "--window-size=1920,1080" Running tests with these arguments produces strange size screenshots: 1028x653 px
But with the old headless mode: "--headless", "--window-size=1920,1080" the screenshots size is OK: 1920x1080 px.
I can't use old mode, because the files downloading is not working in it anymore, here is the post about it, where using the new headless mode is suggest as a solution: Downloading with chrome headless and selenium