environmentVariables.setProperty("thucydides.browser.width", "640");
environmentVariables.setProperty("thucydides.browser.height", "400");
driver = testSite.open("phantomjs");
ScreenshotProcessor screenshotProcessor = new SingleThreadScreenshotProcessor(environmentVariables);
Photographer photographer = new Photographer(driver, screenshotDirectory,screenshotProcessor);
File screenshotFile = photographer.takeScreenshot().get();
waitUntilFileIsWritten(screenshotFile);
ResizableImage image = ResizableImage.loadFrom(screenshotFile);
screenshotProcessor.terminate();
waitUntilFileIsWritten(screenshotFile);
assertThat(image.getWitdh(), is(greaterThan(350))); // In Windows the actual dimensions may be are slightly less
}