StrikekitStrikekit

copy

Write text to the browser clipboard

Write quoted text to the browser clipboard. Clipboard permissions are granted on first use.

Syntax

When I copy "<text>"

Requirements

ItemContract
Element / control shapeNone — clipboard write
How the label bindsQuoted text is a payload
Qualifiers that change resolveNone
PlatformWeb only
Wrong shape → use insteadAssert clipboard → should have clipboard value

See also UI contracts.

Examples

When I copy "hello"
Then I should have clipboard value "hello"

Notes

  • Pair with should have clipboard value to assert the clipboard.
  • Web only. Appium / Platform: api return unsupported.

On this page