Esempio n. 1
0
        /// <summary>
        /// Processes the pipeline.
        /// </summary>
        protected override void ProcessRecord()
        {
            //if (this.InputObject == null ||
            // !(this.InputObject is AutomationElement)) {
//            bool save = false;
//            if (this.GetType().Name == "SaveSeScreenshotCommand") {
//                save = true;
//            }

//            //SeHelper.GetScreenshotOfWebElement(
//            SeHelper.GetScreenshotOfCmdletInput(
//                this,
//                this.Description,
//                save,
//                Left,
//                Top,
//                Height,
//                Width,
//                this.Path + @"\" + this.Name,
//                this.As);
//
//            //Tmx.
//            //} else {
//            // UiaHelper.GetControlScreenshot(this.InputObject, this.Description);
//            //}
            var command =
                new SeSaveScreenshotCommand(this);

            command.Execute();
        }
        /// <summary>
        /// Processes the pipeline.
        /// </summary>
        protected override void ProcessRecord()
        {
            //if (this.InputObject == null ||
            // !(this.InputObject is AutomationElement)) {
//            bool save = false;
//            if (this.GetType().Name == "SaveSeScreenshotCommand") {
//                save = true;
//            }
            
//            //SeHelper.GetScreenshotOfWebElement(
//            SeHelper.GetScreenshotOfCmdletInput(
//                this,
//                this.Description,
//                save,
//                Left,
//                Top,
//                Height,
//                Width,
//                this.Path + @"\" + this.Name,
//                this.As);
//            
//            //Tmx.
//            //} else {
//            // UiaHelper.GetControlScreenshot(this.InputObject, this.Description);
//            //}
            var command =
                new SeSaveScreenshotCommand(this);
            command.Execute();
        }