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

Method ResizeWindow

remote.go:856–867  ·  view source on GitHub ↗
(name string, width, height int)

Source from the content-addressed store, hash-verified

854}
855
856func (wd *remoteWD) ResizeWindow(name string, width, height int) error {
857 if !wd.w3cCompatible {
858 return wd.modifyWindow(name, "POST", "size", map[string]int{
859 "width": width,
860 "height": height,
861 })
862 }
863 return wd.modifyWindow(name, "POST", "rect", map[string]float64{
864 "width": float64(width),
865 "height": float64(height),
866 })
867}
868
869func (wd *remoteWD) SwitchFrame(frame interface{}) error {
870 params := map[string]interface{}{}

Callers

nothing calls this directly

Calls 1

modifyWindowMethod · 0.95

Tested by

no test coverage detected