def METHOD_NAME(mocker, browser_name):
    options = import_module(f"selenium.webdriver.{browser_name}.options")
    mock = mocker.patch("selenium.webdriver.remote.webdriver.WebDriver.start_session")
    opts = options.Options()
    opts.add_argument("foo")
    WebDriver(options=opts)
    expected_caps = opts.to_capabilities()
    mock.assert_called_with(expected_caps)