def Browser(  # NOQA: N802
    driver_name: str = "firefox",
    retry_count: int = 3,
    config=None,
    *args,
    **kwargs,
):
    """Get a new driver instance.

    Extra arguments will be sent to the driver instance.

    If there is no driver registered with the provided ``driver_name``, this
    function will raise a :class:`splinter.exceptions.DriverNotFoundError`
    exception.

    Arguments:
        driver_name (str): Name of the driver to use.
        retry_count (int): Number of times to try and instantiate the driver.

    Returns:
        Driver instance
    """

    try:
        driver = _DRIVERS[driver_name]
    except KeyError as err:
        raise DriverNotFoundError(f"{driver_name} is not a recognized driver.") from err

    if driver is None:
        raise DriverNotFoundError(f"Driver for {driver_name} was not found.")

    return get_driver(driver, retry_count=retry_count, config=config, *args, **kwargs)
Get a new driver instance.

    Extra arguments will be sent to the driver instance.

    If there is no driver registered with the provided ``driver_name``, this
    function will raise a :class:`splinter.exceptions.DriverNotFoundError`
    exception.

    Arguments:
        driver_name (str): Name of the driver to use.
        retry_count (int): Number of times to try and instantiate the driver.

    Returns:
        Driver instance
    
splinter/browser.py