my $filename = "screenshot.png"; $driver->capture_screenshot($filename);