(urlTemplate string)
| 283 | } |
| 284 | |
| 285 | func (wd remoteWD) stringsCommand(urlTemplate string) ([]string, error) { |
| 286 | url := wd.requestURL(urlTemplate, wd.id) |
| 287 | response, err := wd.execute("GET", url, nil) |
| 288 | if err != nil { |
| 289 | return nil, err |
| 290 | } |
| 291 | |
| 292 | reply := new(struct{ Value []string }) |
| 293 | if err := json.Unmarshal(response, reply); err != nil { |
| 294 | return nil, err |
| 295 | } |
| 296 | |
| 297 | return reply.Value, nil |
| 298 | } |
| 299 | |
| 300 | func (wd *remoteWD) boolCommand(urlTemplate string) (bool, error) { |
| 301 | url := wd.requestURL(urlTemplate, wd.id) |
no test coverage detected