You may see a lot of developers, or even regular users, feel that this method is more restrictive than it should be.
ChromeDriver creates these temp directories for use by Chrome, and at the end ChromeDriver tries to delete those directories.
Search for: Subscribe to Blog via Email Enter your email address to subscribe to this blog and receive notifications of new posts by email.
This commit added the retry logic while cleaning up these directories incase ChromeDriver fails to delete temporary directories while exiting, causing wasted disk space.