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

Method execScript

remote.go:1133–1145  ·  view source on GitHub ↗
(script string, args []interface{}, suffix string)

Source from the content-addressed store, hash-verified

1131}
1132
1133func (wd *remoteWD) execScript(script string, args []interface{}, suffix string) (interface{}, error) {
1134 response, err := wd.execScriptRaw(script, args, suffix)
1135 if err != nil {
1136 return nil, err
1137 }
1138
1139 reply := new(struct{ Value interface{} })
1140 if err = json.Unmarshal(response, reply); err != nil {
1141 return nil, err
1142 }
1143
1144 return reply.Value, nil
1145}
1146
1147func (wd *remoteWD) ExecuteScript(script string, args []interface{}) (interface{}, error) {
1148 if !wd.w3cCompatible {

Callers 2

ExecuteScriptMethod · 0.95
ExecuteScriptAsyncMethod · 0.95

Calls 1

execScriptRawMethod · 0.95

Tested by

no test coverage detected