Warning: include(/mounted-storage/home30b/sub003/sc26705-WCCK/seleniumstutorial.com/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /storage/content/94/1008094/seleniumstutorial.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 70 Warning: include(/mounted-storage/home30b/sub003/sc26705-WCCK/seleniumstutorial.com/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /storage/content/94/1008094/seleniumstutorial.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 70 Warning: include(): Failed opening '/mounted-storage/home30b/sub003/sc26705-WCCK/seleniumstutorial.com/wp-content/plugins/wp-super-cache/wp-cache-base.php' for inclusion (include_path='.:/usr/local/php54/lib/php:/storage/content/94/1008094/pear/php') in /storage/content/94/1008094/seleniumstutorial.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 70 Warning: include_once(/mounted-storage/home30b/sub003/sc26705-WCCK/seleniumstutorial.com/wp-content/plugins/wp-super-cache/ossdl-cdn.php): failed to open stream: No such file or directory in /storage/content/94/1008094/seleniumstutorial.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 90 Warning: include_once(): Failed opening '/mounted-storage/home30b/sub003/sc26705-WCCK/seleniumstutorial.com/wp-content/plugins/wp-super-cache/ossdl-cdn.php' for inclusion (include_path='.:/usr/local/php54/lib/php:/storage/content/94/1008094/pear/php') in /storage/content/94/1008094/seleniumstutorial.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 90 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...