Skip to content

v1.0.0: Cross-Browser Clipboard Testing Solution πŸš€

Latest
Compare
Choose a tag to compare
@vrknetha vrknetha released this 08 Dec 09:55

A comprehensive clipboard testing solution for Playwright, providing reliable cross-browser support for clipboard operations.

✨ Key Features

  • Cross-browser clipboard operations (Chromium, Firefox, WebKit)
  • Rich text operations with HTML preservation
  • Text selection with character and word-level control
  • Clipboard content management with direct access
  • TypeScript support with full type definitions

πŸ”§ Technical Details

  • Browser-specific optimizations:

    • Native Clipboard API for Chromium
    • Keyboard shortcuts fallback for Firefox
    • Hybrid approach for WebKit
  • Fallback mechanisms:

    • Automatic fallback to keyboard shortcuts when needed
    • ContentEditable elements for rich text operations
    • Range and Selection APIs for text manipulation

πŸ“ Requirements

  • Node.js >= 20.0.0
  • Playwright >= 1.49.0
  • TypeScript >= 5.3.0 (for TypeScript users)

πŸ” Browser Support Matrix

Feature Chromium Firefox WebKit
Basic Operations βœ… βœ… βœ…
Rich Text βœ… βœ… βœ…
Word Operations βœ… βœ… βœ…
Text Selection βœ… βœ… βœ…

πŸ“¦ Installation

npm install --save-dev playwright-clipboard

πŸ”— Links