code: def driver(self):
          
          from dallinger.config import get_config
  
          config = get_config()
          if not config.ready:
              config.load()
          driver_url = config.get("webdriver_url", None)
          driver_type = config.get("webdriver_type")
          driver = None
  
          if driver_url:
              capabilities = CAPABILITY_MAP.get(driver_type.lower())
              if capabilities is None:
                  raise ValueError(
                      "Unsupported remote webdriver_type: {}".format(driver_type)
                  )
              driver = webdriver.Remote(
                  desired_capabilities=capabilities, command_executor=driver_url
              )
          else:
              driver_class = DRIVER_MAP.get(driver_type.lower())
              if driver_class is not None:
                  driver = driver_class()
  
          if driver is None:
              raise ValueError("Unsupported webdriver_type: {}".format(driver_type))
  
          driver.set_window_size(1024, 768)
          logger.info("Created {} webdriver.".format(driver_type))
          return driver
docs: Returns a Selenium WebDriver instance of the type requested in the
          configuration.