I'm using Jenkins for run selenium tests on windows slave. Windows slave has windows 2016 OS. For launched slave instance I used ec2 plugin for Jenkins, it uses
winrm protocol for management our nodes. Test executed nice, but screenshot has resolution about 1024*786(I think). But server has resolution 1920*1020. If I did rdp CONNECT TO SLAVE SERVER before begin tests, screenshot will be full size. I added auto-login for my user that use winrm via netplwiz. Didn't help me.
Also I tried:
1. Changed into windows register: DefaultSettings.XResolution,DefaultSettings.YResolution to 1902*1020;
Help me only when I do rdp connect to my server before begin tests.
UPDATE(12.10.2018):
C:\Users\jenkins>powershell -command "Set-DisplayResolution -Width 1920 -Height 1080 -Force"
setres will now attempt to apply the following display settings:
Width: 1920
Height: 1080
The settings passed in could not be applied to the graphics device.
init script ran successfully
I want to make note, I'm using winrm protocol. I founded an interesting article https://serverfault.com/questions/803453/windows-server-2012-default-desktop-size
therefore, maybe reason is in display driver (Hyper-V Video)...