public function take_screenshot() { // Change the Path to your own settings $screenshot = time() . ".png"; self::$webDriver->takeScreenshot($screenshot); }