I have a Keyword Test that iterates through a CSV file. If a script were created to do the same thing, I would include DDT.CloseDriver(driver.Name); to close the driver.
How do I do this in a Keyword Test?
You need to use the Run Script Routine operation (see the "Run Script Routine Operation" help topic for more information) to call the routine from a keyword-driven test.
Allen - SmartBear Support
From the test actions if you select "Run Code Snippet".
Then you can put the exact same code...DDT.CloseDriver....
Hope this helps