title: Python selenium share second browser between test
body: <p>I'm quite new to selenium and may be doing something wrong. Please fix me!</p>
  <p>I'm creating some E2E tests, part of them require second account.
  Each time I open new browser, I have to make login procedure, that takes time.
  So, I decided to keep the second browser open between tests and reuse it.</p>
  <p>But I can't pass the newly created selenium object to the second test. What I'm doing wrong?</p>
  <pre><code>class RunTest(unittest.TestCase): 
      @classmethod
      def setUpClass(self):
          #main browser that I always use
          self.driver = webdriver.Chrome(...)
  
      def init_second_driver(self):
          #second browser that could be used by some tests
          self.second_driver = webdriver.Chrome(...)
  
      def test_case1(self):
          if not self.second_driver:
              self.init_second_driver() 
          #some tests for case 1
  
      def test_case2(self):
          if not self.second_driver: #this check always fails! WHY?
              self.init_second_driver()
          #some tests for case 2
  
  
  </code></pre>
  <p>Thank you in advance</p>