code: def _get_capabilities_from_driver_type(driver_name):
          
          if driver_name == 'firefox':
              return DesiredCapabilities.FIREFOX.copy()
          elif driver_name == 'chrome':
              return DesiredCapabilities.CHROME.copy()
          elif driver_name == 'safari':
              return DesiredCapabilities.SAFARI.copy()
          elif driver_name == 'opera':
              return DesiredCapabilities.OPERA.copy()
          elif driver_name == 'iexplore':
              return DesiredCapabilities.INTERNETEXPLORER.copy()
          elif driver_name == 'edge':
              return DesiredCapabilities.EDGE.copy()
          elif driver_name == 'phantomjs':
              return DesiredCapabilities.PHANTOMJS.copy()
          elif driver_name in ('android', 'ios', 'iphone'):
              return {}
          raise Exception('Unknown driver {0}'.format(driver_name))
docs: Create initial driver capabilities
  
          :params driver_name: name of selected driver
          :returns: capabilities dictionary