(name string)
| 770 | } |
| 771 | |
| 772 | func (wd *remoteWD) SwitchWindow(name string) error { |
| 773 | params := make(map[string]string) |
| 774 | if !wd.w3cCompatible { |
| 775 | params["name"] = name |
| 776 | } else { |
| 777 | params["handle"] = name |
| 778 | } |
| 779 | return wd.voidCommand("/session/%s/window", params) |
| 780 | } |
| 781 | |
| 782 | func (wd *remoteWD) CloseWindow(name string) error { |
| 783 | return wd.modifyWindow(name, "DELETE", "", nil) |
no test coverage detected