def Browser(driver_name='firefox', *args, **kwargs):
 try:
  driver = _DRIVERS[driver_name]
 except KeyError:
  raise DriverNotFoundError(('No driver for %s' % driver_name))
 return driver(*args, **kwargs)

def Browser ( driver_name = 'firefox' , * args , ** kwargs ) : try : driver = _DRIVERS [ driver_name ] except KeyError : raise DriverNotFoundError ( ( 'No driver for %s' % driver_name ) ) return driver ( * args , ** kwargs )
returns a driver instance for the given name .