(urlTemplate string)
| 298 | } |
| 299 | |
| 300 | func (wd *remoteWD) boolCommand(urlTemplate string) (bool, error) { |
| 301 | url := wd.requestURL(urlTemplate, wd.id) |
| 302 | response, err := wd.execute("GET", url, nil) |
| 303 | if err != nil { |
| 304 | return false, err |
| 305 | } |
| 306 | |
| 307 | reply := new(struct{ Value bool }) |
| 308 | if err := json.Unmarshal(response, reply); err != nil { |
| 309 | return false, err |
| 310 | } |
| 311 | |
| 312 | return reply.Value, nil |
| 313 | } |
| 314 | |
| 315 | func (wd *remoteWD) Status() (*Status, error) { |
| 316 | url := wd.requestURL("/status") |
no test coverage detected