MCPcopy Create free account
hub / github.com/tebeka/selenium / processKeyString

Method processKeyString

remote.go:1286–1295  ·  view source on GitHub ↗
(keys string)

Source from the content-addressed store, hash-verified

1284}
1285
1286func (wd *remoteWD) processKeyString(keys string) interface{} {
1287 if !wd.w3cCompatible {
1288 chars := make([]string, len(keys))
1289 for i, c := range keys {
1290 chars[i] = string(c)
1291 }
1292 return map[string][]string{"value": chars}
1293 }
1294 return map[string]string{"text": keys}
1295}
1296
1297func (elem *remoteWE) TagName() (string, error) {
1298 urlTemplate := fmt.Sprintf("/session/%%s/element/%s/name", elem.id)

Callers 2

KeyDownMethod · 0.95
SendKeysMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected