I have a requirement to test a webpage using chrome browser on various devices like pc, iphone and ipad to verify the orientation and display of various UI elements.
I'm able to view the display and orientation using the developer tools in chrome on my pc for various mobile devices.
However I wanted to know if I can test this by launching the chrome browser using selenium and c# to resize the window as per the resolution of ipad in chrome developer tools.
Would this be a reliable way to test?
driver.Manage().Window.Size = new System.Drawing.Size(320, 568);