Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/storage/content/94/1008094/seleniumstutorial.com/:/storage/configuration/wrappers/94/1008094/seleniumstutorial.com/:/tmp/) in /storage/content/94/1008094/seleniumstutorial.com/public_html/wp-includes/functions.php on line 1618 Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/storage/content/94/1008094/seleniumstutorial.com/:/storage/configuration/wrappers/94/1008094/seleniumstutorial.com/:/tmp/) in /storage/content/94/1008094/seleniumstutorial.com/public_html/wp-includes/functions.php on line 1618 Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/storage/content/94/1008094/seleniumstutorial.com/:/storage/configuration/wrappers/94/1008094/seleniumstutorial.com/:/tmp/) in /storage/content/94/1008094/seleniumstutorial.com/public_html/wp-includes/functions.php on line 1618 Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/storage/content/94/1008094/seleniumstutorial.com/:/storage/configuration/wrappers/94/1008094/seleniumstutorial.com/:/tmp/) in /storage/content/94/1008094/seleniumstutorial.com/public_html/wp-includes/functions.php on line 1618 Cleaning up the WebDriver in Selenium using C# – Selenium's Tutorial

Cleaning up the WebDriver in Selenium using C#

The below simple code will allow you to close the WebDriver once the Execution is done. It’s always a good practice to run the TestCase in a new instance of WebDriver rather than in the old one as if we run the same browser there will be some caching issues

 

 

You may also like...