Ejemplo n.º 1
0
        public UIAutomation(IntPtr _rootWindow, string _ApplicationName, AgentDesktopSession _localSession, TraceLogger _LogWriter)
        {
            localSession    = _localSession;
            LogWriter       = _LogWriter;
            ApplicationName = _ApplicationName;
            rootWindow      = _rootWindow;

            //    this.IsWebApp = false;
            this.MainWindowHandle = (IntPtr)_rootWindow;
            RootAutomationElement = AutomationElement.FromHandle(this.MainWindowHandle);
            AutomationProperties  = UIAHelperMethods.GetAutomationElementIdentifiers();
            UIAHelperMethods.UpdateControlTypeNames();
            AutomationPropReturnTypes = UIAHelperMethods.GetAutomationReturnTypes();
            AutomationEventList       = UIAHelperMethods.GetAutomationEventList();
        }