MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / LocalFileDetector

Class LocalFileDetector

py/selenium/webdriver/remote/file_detector.py:40–49  ·  view source on GitHub ↗

Detects files on the local disk.

Source from the content-addressed store, hash-verified

38
39
40class LocalFileDetector(FileDetector):
41 """Detects files on the local disk."""
42
43 def is_local_file(self, *keys: str | float) -> str | None:
44 file_path = "".join(keys_to_typing(keys))
45
46 with suppress(OSError):
47 if Path(file_path).is_file():
48 return file_path
49 return None

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected