def test_browser_config(request, browser_name, browser_kwargs):
    """Splinter's drivers get the Config object when it's passed through the Browser function."""
    from splinter import Config
    from splinter import Browser

    config = Config(user_agent="agent_smith", headless=True)
    browser = Browser(browser_name, config=config, **browser_kwargs)
    request.addfinalizer(browser.quit)

    assert browser.config.user_agent == "agent_smith"
Splinter's drivers get the Config object when it's passed through the Browser function.
tests/tests_webdriver/test_webdriver.py