MicrosoftEdge / EdgeWebDriver

Feedback and discussions about WebDriver for Microsoft Edge
MIT License
55 stars 7 forks source link

Cannot set window size when headless=new on Hyper-V virtual machine #77

Open JanVokroj opened 1 year ago

JanVokroj commented 1 year ago

When I start edgedriver on Hyper-V virtual machine with headless=new. Created screenshot has always fixed ( and pretty small ) size. Tests are obviously also running on small screen size.
No matter what settings I use I'm not able to change window size or maximize window in headless=new. With headless=old, set size works, but then I'm not able to download files. Virtual machine has graphic driver Microsoft Hyper-V Video

On my local machine headless=new works fine EdgeDriver : 111.2.1661.54

AB#44304868

bwalderman commented 1 year ago

Hi @JanVokroj, I've added this to our internal backlog for investigation.

Does the same issue happen when using headless=new with Chrome and ChromeDriver?

JanVokroj commented 1 year ago

Hello @bwalderman. Yes, it happens also with Chrome and ChromeDriver when headless=new . But solved for now by setting scale to 0.5. To run it on virtual machine we are using remote session ( winrm ). Which is non graphic, has resolution always 1024*768 and it's not possible to change it from that session. So I think it might be related since headless=new share implementation with non headless mode. And classic browser usually cannot have higher size that screen resolution.