old_contents: import pytest
  
  from selenium import webdriver
  
  
  class WebDriver(object):
      """
      Initilization of browser
      """
  
      def __init__(self):
          self.driver = webdriver.Firefox()
          self.driver.get("about:blank")
          self.driver.implicitly_wait(10)
          self.driver.maximize_window()
  
      def quite(self):
          """
          Terminate the browser session
          :return:
          """
          self.driver.quit()
  
  
  @pytest.fixture(scope="session")
  def browser(request):
      driver = WebDriver()
      print "Browser initialized"
      request.addfinalizer(driver.quite)
      print "Browser teardown"
      return driver
  
new_contents: import pytest
  
  from selenium import webdriver
  
  
  class WebDriver(object):
      """
      Initilization of browser
      """
  
      def __init__(self):
          self.driver = webdriver.Chrome()
          self.driver.get("about:blank")
          self.driver.implicitly_wait(10)
          self.driver.maximize_window()
  
      def quite(self):
          """
          Terminate the browser session
          :return:
          """
          self.driver.quit()
  
  
  @pytest.fixture(scope="session")
  def browser(request):
      driver = WebDriver()
      print "Browser initialized"
      request.addfinalizer(driver.quite)
      print "Browser teardown"
      return driver
  
subject: Update conftest.py