MCPcopy Create free account
hub / github.com/tebeka/selenium / SwitchWindow

Method SwitchWindow

remote.go:772–780  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

770}
771
772func (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
782func (wd *remoteWD) CloseWindow(name string) error {
783 return wd.modifyWindow(name, "DELETE", "", nil)

Callers 1

modifyWindowMethod · 0.95

Calls 1

voidCommandMethod · 0.95

Tested by

no test coverage detected