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

Method MaximizeWindow

remote.go:786–800  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

784}
785
786func (wd *remoteWD) MaximizeWindow(name string) error {
787 if !wd.w3cCompatible {
788 if name != "" {
789 var err error
790 name, err = wd.CurrentWindowHandle()
791 if err != nil {
792 return err
793 }
794 }
795 url := wd.requestURL("/session/%s/window/%s/maximize", wd.id, name)
796 _, err := wd.execute("POST", url, nil)
797 return err
798 }
799 return wd.modifyWindow(name, "POST", "maximize", map[string]string{})
800}
801
802func (wd *remoteWD) MinimizeWindow(name string) error {
803 return wd.modifyWindow(name, "POST", "minimize", map[string]string{})

Callers

nothing calls this directly

Calls 4

CurrentWindowHandleMethod · 0.95
requestURLMethod · 0.95
executeMethod · 0.95
modifyWindowMethod · 0.95

Tested by

no test coverage detected