def function_mock(request, q_function_name, **kwargs):
    _patch = patch(q_function_name, **kwargs)
    request.addfinalizer(_patch.stop)
    return _patch.start()
Switches focus to the specified frame, by index, name, or webelement.
dataset/ETHPy150Open python-openxml/python-docx/tests/unitutil/mock.py/function_mock--crossover with--dataset/ETHPy150Open apiad/sublime-browser-integration/selenium/webdriver/remote/webdriver.py/WebDriver.switch_to_frame