()
| 536 | } |
| 537 | |
| 538 | func (wd *remoteWD) Capabilities() (Capabilities, error) { |
| 539 | url := wd.requestURL("/session/%s", wd.id) |
| 540 | response, err := wd.execute("GET", url, nil) |
| 541 | if err != nil { |
| 542 | return nil, err |
| 543 | } |
| 544 | |
| 545 | c := new(struct{ Value Capabilities }) |
| 546 | if err := json.Unmarshal(response, c); err != nil { |
| 547 | return nil, err |
| 548 | } |
| 549 | |
| 550 | return c.Value, nil |
| 551 | } |
| 552 | |
| 553 | func (wd *remoteWD) SetAsyncScriptTimeout(timeout time.Duration) error { |
| 554 | if !wd.w3cCompatible { |
nothing calls this directly
no test coverage detected