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

Function elementIDFromValue

remote.go:717–726  ·  view source on GitHub ↗
(v map[string]string)

Source from the content-addressed store, hash-verified

715)
716
717func elementIDFromValue(v map[string]string) string {
718 for _, key := range []string{webElementIdentifier, legacyWebElementIdentifier} {
719 v, ok := v[key]
720 if !ok || v == "" {
721 continue
722 }
723 return v
724 }
725 return ""
726}
727
728func (wd *remoteWD) DecodeElements(data []byte) ([]WebElement, error) {
729 reply := new(struct{ Value []map[string]string })

Callers 2

DecodeElementMethod · 0.85
DecodeElementsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…