 if ($driver instanceof GoutteDriver) {
   

//Disables SSL peer verification so that testing under HTTPS always works.
$driver->getClient()->setClient(\Drupal::service('http_client_factory')->fromOptions(['verify' => FALSE]));
    }
