API Reference
Clipboard
Clipboard reads and writes the Windows clipboard.
Full signatures for
dolphin_desktop._clipboard.Clipboard are generated from the package docstrings — use help() in Python or autocomplete in your IDE.Usage
from dolphin_desktop import Clipboard
# Text
Clipboard.set_text("hello")
text = Clipboard.get_text() # "hello"
# Image
img = Clipboard.get_image() # PIL.Image or None
# Clear
Clipboard.clear()
Notes
- Uses
win32clipboard(pywin32) - Windows only. Locator.text()usesClipboardinternally as a fallback for controls that don't expose text via UIA (e.g., Windows 11 Notepad'sDocumentcontrol).- Clipboard is process-global. Parallel tests that use the clipboard simultaneously can interfere with each other - avoid parallel test runs that rely on clipboard operations.