Screenshot with Selenium Webdriver and PHPUnit
php, phpunit, selenium
Solution
$driver->takeScreenshot('/path/to/image.png');
Problem
I know that screenshots could be taken by extending `PHPUnit_Extensions_Selenium2TestCase` but right now, I'm using Facebook's php-webdriver so I'm just extending with `PHPUnit_Framework_TestCase` Is there anyway to take screenshots with this just the driver and not extending the extension? Thanks.