code: def _create_local_driver(self):
          
          driver_type = self.config.get('Driver', 'type')
          driver_name = driver_type.split('-')[0]
  
          if driver_name in ('android', 'ios', 'iphone'):
              # Create local appium driver
              driver = self._setup_appium()
          else:
              driver_setup = {
                  'firefox': self._setup_firefox,
                  'chrome': self._setup_chrome,
                  'safari': self._setup_safari,
                  'opera': self._setup_opera,
                  'iexplore': self._setup_explorer,
                  'edge': self._setup_edge,
                  'phantomjs': self._setup_phantomjs
              }
              driver_setup_method = driver_setup.get(driver_name)
              if not driver_setup_method:
                  raise Exception('Unknown driver {0}'.format(driver_name))
  
              # Get driver capabilities
              capabilities = self._get_capabilities_from_driver_type(driver_name)
              self._add_capabilities_from_properties(capabilities, 'Capabilities')
  
              # Create local selenium driver
              driver = driver_setup_method(capabilities)
  
          return driver
docs: Create a driver in local machine
  
          :returns: a new local selenium driver