public ElementImageComparer(IPurpleElement element)
 {
     this.element = element;
     CreateDirectory();
     liveImage = GetLiveImage();
     storedImage = GetStoredImage();
 }
 public ElementImageComparer(IPurpleElement element)
 {
     this.element = element;
     CreateDirectory();
     liveImage   = GetLiveImage();
     storedImage = GetStoredImage();
 }
Example #3
0
 public ElementVerification(IPurpleElement element, int timeoutSec = 0, bool failTest = false, bool isTrue = true)
 {
     this.element    = element;
     this.timeoutSec = timeoutSec;
     this.failTest   = failTest;
     this.isTrue     = isTrue;
 }
 public ElementVerification(IPurpleElement element, int timeoutSec = 0, bool failTest = false, bool isTrue = true)
 {
     this.element = element;
     this.timeoutSec = timeoutSec;
     this.failTest = failTest;
     this.isTrue = isTrue;
 }
Example #5
0
 /// <summary>
 /// Creates a new object with a reference to a PurpleElement object.
 /// It erase all the previous snapshots that might have been taken.
 /// </summary>
 /// <param name="element">purple element</param>
 public ImageManipulation(IPurpleElement element)
 {
     this.element = element;
     CreateDirectory();
     liveImage = GetLiveImage();
     //storedImage = GetStoredImage();
     DirLocation = Directory.GetCurrentDirectory().Replace(@"\bin\Debug", "").Replace(@"\bin\Release", "") + "\\ElementImages\\";
     FileName    = element.ElementName.Replace(" ", "");
     DeleteAllSnapshots();
 }
 /// <summary>
 ///     Creates a new object with a reference to a PurpleElement object.
 ///     It erase all the previous snapshots that might have been taken.
 /// </summary>
 /// <param name="element">purple element</param>
 public ImageManipulation(IPurpleElement element)
 {
     this.element = element;
     CreateDirectory();
     liveImage = GetLiveImage();
     //storedImage = GetStoredImage();
     DirLocation = Directory.GetCurrentDirectory().Replace(@"\bin\Debug", "").Replace(@"\bin\Release", "") +
                   "\\ElementImages\\";
     FileName = element.ElementName.Replace(" ", "");
     DeleteAllSnapshots();
 }