MCPcopy Create free account
hub / github.com/microsoft/Webwright / get_environment_class

Function get_environment_class

src/webwright/environments/__init__.py:14–18  ·  view source on GitHub ↗
(spec: str)

Source from the content-addressed store, hash-verified

12
13
14def get_environment_class(spec: str) -> type[Environment]:
15 full_path = _ENVIRONMENT_MAPPING.get(spec, spec)
16 module_name, class_name = full_path.rsplit(".", 1)
17 module = importlib.import_module(module_name)
18 return getattr(module, class_name)
19
20
21def get_environment(config: dict, *, default_type: str = "local_workspace") -> Environment:

Callers 1

get_environmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected