In selenium, I have a whole bunch of checks to see if the browser contains something. If the browser does not contain what I want, I close the program.
Console.WriteLine("Error loading channel.", Color.Red);
driver.close(); // Is this needed?
driver.quite(); // Is this needed?
System.Environment.Exit(0);
Do I need to close the driver before I call exit? What is better coding practice?