code: def set_window_rect(self, x=None, y=None, width=None, height=None):
          
          if not self.w3c:
              raise UnknownMethodException("set_window_rect is only supported for W3C compatible browsers")
  
          if (x is None and y is None) and (height is None and width is None):
              raise InvalidArgumentException("x and y or height and width need values")
  
          return self.execute(Command.SET_WINDOW_RECT, {"x": x, "y": y,
                                                        "width": width,
                                                        "height": height})['value']
docs: Sets the x, y coordinates of the window as well as height and width of
          the current window. This method is only supported for W3C compatible
          browsers; other browsers should use `set_window_position` and
          `set_window_size`.
  
          :Usage:
              ::
  
                  driver.set_window_rect(x=10, y=10)
                  driver.set_window_rect(width=100, height=200)
                  driver.set_window_rect(x=10, y=10, width=100, height=200)