internal static IUiElementInformation GetUiElementInformation(classic.AutomationElement.AutomationElementInformation information) { try { var singleInfo = new ConstructorArgument("information", information); // 20140122 // IUiElementInformation adapterInformation = Kernel.Get<IUiElementInformation>(singleInfo); IUiElementInformation adapterInformation; // if (null != ChildKernel) { // adapterInformation = ChildKernel.Get<IUiElementInformation>(singleInfo); // var childKernel = GetChildKernel(); // adapterInformation = childKernel.Get<IUiElementInformation>(singleInfo); adapterInformation = ChildKernel.Get <IUiElementInformation>(singleInfo); // childKernel.Dispose(); // } else { // adapterInformation = Kernel.Get<IUiElementInformation>(singleInfo); // } return(adapterInformation); } catch (Exception) { // TODO // write error to error object!!! // Console.WriteLine("Information"); // Console.WriteLine(eFailedToIssueInformation.Message); return(null); } }
public UiElementInformation(classic.AutomationElement.AutomationElementInformation information) { _infoHolder = information; }
public UiElementInformation(classic.AutomationElement.AutomationElementInformation information) { _infoHolder = information; }