MCPcopy
hub / github.com/go-rod/rod / Type

Method Type

input.go:74–86  ·  view source on GitHub ↗

Type releases the key after the press.

(keys ...input.Key)

Source from the content-addressed store, hash-verified

72
73// Type releases the key after the press.
74func (k *Keyboard) Type(keys ...input.Key) (err error) {
75 for _, key := range keys {
76 err = k.Press(key)
77 if err != nil {
78 return
79 }
80 err = k.Release(key)
81 if err != nil {
82 return
83 }
84 }
85 return
86}
87
88// KeyActionType enum.
89type KeyActionType int

Callers 8

MustTypeMethod · 0.95
TestKeyActionsFunction · 0.45
TestKeyTypeFunction · 0.45
TestKeyTypeErrFunction · 0.45
DoMethod · 0.45
waitEventMethod · 0.45
eachEventMethod · 0.45
TestHijackFunction · 0.45

Calls 2

PressMethod · 0.95
ReleaseMethod · 0.95

Tested by 4

TestKeyActionsFunction · 0.36
TestKeyTypeFunction · 0.36
TestKeyTypeErrFunction · 0.36
TestHijackFunction · 0.36