How to set view port to do specific view-port testing?

How to set view port to do specific view-port testing?

Hi NoahSmith,

To set the viewport for specific viewport testing use the below code:

Dimension newDimension = new Dimension(800, 600);
                `driver.manage().window().setSize(newDimension);`