MCPcopy Create free account
hub / github.com/Effect-TS/effect / click

Method click

packages/effect/src/ui/testing/Play.ts:136–136  ·  view source on GitHub ↗

* Clicks the one element `target` matches: the innermost element with a * `click` handler, that element or an ancestor, gets it. A string means * `Locator.text(target)`. The payload is a mouse's primary button at the * origin with no modifier keys.

(target: string | Locator.Locator)

Source from the content-addressed store, hash-verified

134 * origin with no modifier keys.
135 */
136 click(target: string | Locator.Locator): Effect.Effect<void, StepError>
137 /**
138 * Sends `event` with `payload`, `{}` by default, to the one element
139 * `locator` matches: the innermost element with a handler for it, that

Callers 15

index.test.tsxFile · 0.65
clickFunction · 0.65
harness.tsFile · 0.65
checkCounterFunction · 0.65
checkFeaturesFunction · 0.65
checkMenuFunction · 0.65
passFunction · 0.65
interactionsForFunction · 0.65
Keyed.test.tsFile · 0.65
Story.test.tsFile · 0.65

Implementers 2

PlayStepspackages/effect/src/ui/internal/play.t
SceneCursorpackages/effect/src/ui/internal/scene.

Calls

no outgoing calls

Tested by 12

interactionsForFunction · 0.52
twiceFunction · 0.52
clickPlusFunction · 0.52
connectedCallbackMethod · 0.52
clickFunction · 0.52
clickFunction · 0.52
tapFunction · 0.52
setFunction · 0.52
toggleFunction · 0.52
enterFunction · 0.52
toggleLockFunction · 0.52
pressFunction · 0.52