var AfterHooks = function () {
	this.After(function (scenario) {

		// after scenario tasks goes here:
		debugger
		this.testDriver.close(this.browser);

		//garbage collecting
		this.browser = null;
		this.testDriver = null; //making testDriver object unreachable for garbage collection.

	});
};

module.exports = AfterHooks;
var AfterHooks = function () {
	this.After(function (scenario) {

		// after scenario tasks goes here:
		debugger
		if(this.browser !== null){
			this.testDriver.close(this.browser);
		}
		
		//garbage collecting
		this.browser = null;
		this.testDriver = null; //making testDriver object unreachable for garbage collection.

	});
};

module.exports = AfterHooks;
fix auto browser in after hook