private void printALLData_for_ValidationElement(ValidationElement validationElement) { Console.WriteLine("descrition " + validationElement.LongDescription); Console.WriteLine("Element " + validationElement.Element); Console.WriteLine("ValidatedAttribute " + validationElement.ValidatedAttribute); Console.WriteLine("ValidationType " + validationElement.ValidationType); Console.WriteLine("ValidationInformation " + validationElement.ValidationInformation); Console.WriteLine("RepairResult " + validationElement.RepairResult); Console.WriteLine("CAEXElement " + validationElement.CAEXElement); Console.WriteLine("AvailableRepairOptions " + validationElement.AvailableRepairOptions); Console.WriteLine("\n\n"); }
public UIElementClickAndValidateEditPage(ActUIElement Act, PlatformInfoBase mPlatform) { mAct = Act; InitializeComponent(); //TODO: Binding of all UI elements ClickType.Init(mAct.GetOrCreateInputParam(ActUIElement.Fields.ClickType), mPlatform.GetPlatformUIClickTypeList(), false, null); ValidationType.Init(mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationType), mPlatform.GetPlatformUIValidationTypesList(), false, null); ValidationElement.Init(mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationElement), mPlatform.GetPlatformUIElementsType(), false, null); LocateByComboBox.Init(mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationElementLocateBy), mPlatform.GetPlatformUIElementLocatorsList(), false, null); LocatorValue.Init(mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationElementLocatorValue), true, false, UCValueExpression.eBrowserType.Folder); GingerCore.General.ActInputValueBinding(LoopThroughClicks, CheckBox.IsCheckedProperty, mAct.GetOrCreateInputParam(ActUIElement.Fields.LoopThroughClicks, "False")); }
public UIElementSendKeysAndValidate(ActUIElement Act, PlatformInfoBase Platform) { mAct = Act; mPlatform = Platform; InitializeComponent(); //TODO: Binding of all UI elements Value.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActUIElement.Fields.Value), true, false, UCValueExpression.eBrowserType.Folder); HandleElementType.BindControl(mAct, ActUIElement.Fields.HandleElementType, Platform.GetPlatformUIElementsType()); HandleLocateByComboBox.Init(mAct.GetOrCreateInputParam(ActUIElement.Fields.HandleElementLocateBy), Platform.GetPlatformUIElementLocatorsList(), false, null); HandleLocatorValue.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActUIElement.Fields.HandleElementLocatorValue), true, false, UCValueExpression.eBrowserType.Folder); ValidationType.Init(mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationType), Platform.GetPlatformUIValidationTypesList(), false, null); ValidationElement.Init(mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationElement), Platform.GetPlatformUIElementsType(), false, null); LocateByComboBox.Init(mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationElementLocateBy), Platform.GetPlatformUIElementLocatorsList(), false, null); LocatorValue.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationElementLocatorValue), true, false, UCValueExpression.eBrowserType.Folder); ValidationElementValue.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActUIElement.Fields.ValidationElementValue), true, false, UCValueExpression.eBrowserType.Folder); GingerCore.General.ActInputValueBinding(DefineHandleAction, CheckBox.IsCheckedProperty, mAct.GetOrCreateInputParam(ActUIElement.Fields.DefineHandleAction, "False")); }
private void print_Error(ValidationElement validationElement) { Console.WriteLine("\n\n"); PrintHelper.println("Found Error\n\n", ConsoleColor.Red); if (!String.IsNullOrEmpty(validationElement.LongDescription)) { PrintHelper.println($"{validationElement.LongDescription}\n", ConsoleColor.Yellow); } else { PrintHelper.println($"Exception: {validationElement.ValidationInformation}", this.default_foreground); } PrintHelper.println($"Error with attribute \"{validationElement.ValidatedAttribute}\" \n", this.default_foreground); PrintHelper.println($"Options for reparing \"{validationElement.AvailableRepairOptions}\" \n", ConsoleColor.Green); PrintHelper.println("Error in element: \n", this.default_foreground); PrintHelper.println($"{PrintHelper.line()} \n{validationElement.Element}\n{PrintHelper.line()} \n\n", ConsoleColor.Blue); }
private string print_Error(ValidationElement validationElement) { println("Found Error", ConsoleColor.Red); if (!String.IsNullOrEmpty(validationElement.LongDescription)) { println($"{validationElement.LongDescription}", ConsoleColor.Yellow); } else { println($"Exception: {validationElement.ValidationInformation}", this.default_foreground); } println($"Error with attribute \"{validationElement.ValidatedAttribute}\" ", this.default_foreground); println($"Options for reparing \"{validationElement.AvailableRepairOptions}\" \n", ConsoleColor.Green); println("Error in element:", this.default_foreground); println($"{this.line()} \n{validationElement.Element}\n{this.line()} \n", ConsoleColor.Blue); return($"{validationElement.ValidationInformation}|{validationElement.ValidatedAttribute}|{validationElement.AvailableRepairOptions}|{validationElement.Element}"); }