@after.harvest
def teardown_browser(total):
 if (world.LETTUCE_SELENIUM_CLIENT == 'saucelabs'):
  set_saucelabs_job_status(world.jobid, (total.scenarios_ran == total.scenarios_passed))
 world.browser.quit()

@ after . harvest def teardown_browser ( total ) : if ( world . LETTUCE_SELENIUM_CLIENT == 'saucelabs' ) : set_saucelabs_job_status ( world . jobid , ( total . scenarios_ran == total . scenarios_passed ) ) world . browser . quit ( )
quit the browser after executing the tests .