def click(self, x, y, button=1, n=1):
        """
        Click a mouse button n times on a given x, y.
        Button is defined as 1 = left, 2 = right, 3 = middle.
        """

        for i in range(n):
            self.press(x, y, button)
            self.release(x, y, button)
Click a mouse button n times on a given x, y.
        Button is defined as 1 = left, 2 = right, 3 = middle.