It seems I should have double quotes around the attribute value.
document.querySelectorAll('[name="PrintOptions.Choice_Radio"]');
After editing the file .\modules\configuration\webresources\ts\core\GwFileRequest.ts to have double quotes around the selector's attribute value, I am able to get the csv to be created.