public static void CaptureElementToFile(this AutomationElement element, string filePath)
        {
            CaptureImage captureImage = Capture.Element(element);

            captureImage.ToFile(filePath);
        }
        public static void CaptureElementRectangleToFile(this AutomationElement element, Rectangle rectangle, string filePath)
        {
            CaptureImage captureImage = Capture.ElementRectangle(element, rectangle);

            captureImage.ToFile(filePath);
        }
        public static void CaptureScreenToFile(this AutomationElement element, string filePath)
        {
            CaptureImage captureImage = Capture.Screen();

            captureImage.ToFile(filePath);
        }