
class LazyDriver(object):
    _driver = None

    @classmethod
    def get(cls):
        if cls._driver is None:
            from selenium import webdriver
            # Configure headless mode
            options = webdriver.ChromeOptions() #Oops
            options.add_argument('headless')
            cls._driver = webdriver.Chrome(chrome_options=options)
        return cls._driver


class LazyPool(object):
    _pool = None
    
    @classmethod
    def get(cls):
        if cls._pool is None:
            import urllib3
            cls._pool = urllib3.PoolManager()
        return cls._pool


class LazyDriver(object):
    _driver = None

    @classmethod
    def get(cls):
        import os
        if cls._driver is None:
            from selenium import webdriver
            # Configure headless mode
            options = webdriver.ChromeOptions() #Oops
            options.add_argument('headless')
            chrome_options.add_argument('--ignore-certificate-errors')
            chrome_uptions.add_argument("--logs /tmp/chromelogpanda{0}.log".format(os.getpid()))
            cls._driver = webdriver.Chrome(chrome_options=options)
        return cls._driver


class LazyPool(object):
    _pool = None
    
    @classmethod
    def get(cls):
        if cls._pool is None:
            import urllib3
            cls._pool = urllib3.PoolManager()
        return cls._pool

Add some more arguments for chrome driver
Add some more arguments for chrome driver

  
  class LazyDriver(object):
      _driver = None
  
      @classmethod
      def get(cls):
+         import os
          if cls._driver is None:
              from selenium import webdriver
              # Configure headless mode
              options = webdriver.ChromeOptions() #Oops
              options.add_argument('headless')
+             chrome_options.add_argument('--ignore-certificate-errors')
+             chrome_uptions.add_argument("--logs /tmp/chromelogpanda{0}.log".format(os.getpid()))
              cls._driver = webdriver.Chrome(chrome_options=options)
          return cls._driver
  
  
  class LazyPool(object):
      _pool = None
      
      @classmethod
      def get(cls):
          if cls._pool is None:
              import urllib3
              cls._pool = urllib3.PoolManager()
          return cls._pool
  
Add some more arguments for chrome driver
## Code Before:

class LazyDriver(object):
    _driver = None

    @classmethod
    def get(cls):
        if cls._driver is None:
            from selenium import webdriver
            # Configure headless mode
            options = webdriver.ChromeOptions() #Oops
            options.add_argument('headless')
            cls._driver = webdriver.Chrome(chrome_options=options)
        return cls._driver


class LazyPool(object):
    _pool = None
    
    @classmethod
    def get(cls):
        if cls._pool is None:
            import urllib3
            cls._pool = urllib3.PoolManager()
        return cls._pool

## Instruction:
Add some more arguments for chrome driver
## Code After:

class LazyDriver(object):
    _driver = None

    @classmethod
    def get(cls):
        import os
        if cls._driver is None:
            from selenium import webdriver
            # Configure headless mode
            options = webdriver.ChromeOptions() #Oops
            options.add_argument('headless')
            chrome_options.add_argument('--ignore-certificate-errors')
            chrome_uptions.add_argument("--logs /tmp/chromelogpanda{0}.log".format(os.getpid()))
            cls._driver = webdriver.Chrome(chrome_options=options)
        return cls._driver


class LazyPool(object):
    _pool = None
    
    @classmethod
    def get(cls):
        if cls._pool is None:
            import urllib3
            cls._pool = urllib3.PoolManager()
        return cls._pool
