capybara/window.py
def resize_to(self, width, height):
        """
        Resizes the window to the given dimensions.

        If this method was called for a window that is not current, then after calling this method
        the current window should remain the same as it was before calling this method.

        Args:
            width (int): The new window width in pixels.
            height (int): The new window height in pixels.
        """

        self.driver.resize_window_to(self.handle, width, height)
def resize_to(self, width, height):
        self.driver.resize_window_to(self.handle, width, height)
def resize_to ( self , width , height ) : self . driver . resize_window_to ( self . handle , width , height )
Resizes the window to the given dimensions.

        If this method was called for a window that is not current, then after calling this method
        the current window should remain the same as it was before calling this method.

        Args:
            width (int): The new window width in pixels.
            height (int): The new window height in pixels.
Resizes the window to the given dimensions .