def add_helper_methods_to_splinter_browser_wrapper(inst: Browser) -> Browser: """Add additional helper functions to the splinter browser wrapper.""" inst.compile_js_code = types.MethodType(compile_js_code, inst) inst.evaluate_script_with_kwargs = types.MethodType( evaluate_script_with_kwargs, inst) return inst