MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / _merge_nested

Method _merge_nested

seleniumbase/undetected/options.py:30–38  ·  view source on GitHub ↗

Merges b into a, overwriting duplicate leaf values using b.

(a, b)

Source from the content-addressed store, hash-verified

28
29 @staticmethod
30 def _merge_nested(a, b):
31 """Merges b into a, overwriting duplicate leaf values using b."""
32 for key in b:
33 if key in a:
34 if isinstance(a[key], dict) and isinstance(b[key], dict):
35 ChromeOptions._merge_nested(a[key], b[key])
36 continue
37 a[key] = b[key]
38 return a
39
40 def handle_prefs(self, user_data_dir):
41 prefs = self.experimental_options.get("prefs")

Callers 1

handle_prefsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected