Before { $driver.start_driver } After do begin selenium.driver_quit rescue StandardError => myStandardError puts "\nERROR: *** #{myStandardError}" end end