Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public UiElementInformation(classic.AutomationElement.AutomationElementInformation information)
 {
     _infoHolder = information;
 }
Esempio n. 3
0
 public UiElementInformation(classic.AutomationElement.AutomationElementInformation information)
 {
     _infoHolder = information;
 }