(script string, args []interface{}, suffix string)
| 1131 | } |
| 1132 | |
| 1133 | func (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 | |
| 1147 | func (wd *remoteWD) ExecuteScript(script string, args []interface{}) (interface{}, error) { |
| 1148 | if !wd.w3cCompatible { |
no test coverage detected