src/DrupalExtension/Context/ScreenShotContext.php
public function takeScreenshot($name = NULL) {
    $file_name = sys_get_temp_dir() . DIRECTORY_SEPARATOR . $name;
    $message = "Screenshot created in @file_name";
    $this->createScreenshot($file_name, $message, FALSE);
  }
public function takeScreenshot($name = NULL) {
    $file_name = sys_get_temp_dir() . DIRECTORY_SEPARATOR . $name;
    $message = "Screenshot created in @file_name";
    $this->createScreenshot($file_name, $message, FALSE);
  }
public function takeScreenshot ( $ name = NULL ) { $ file_name = sys_get_temp_dir ( ) . DIRECTORY_SEPARATOR . $ name ; $ message = "Screenshot created in @file_name" ; $ this -> createScreenshot ( $ file_name , $ message , FALSE ) ; }
Save screenshot with a specific name.

@Then (I )take a screenshot :name
Save screenshot with a specific name .