ACAT.Lib.Extension.AppAgents.TalkWindow.TalkWindowAgentBase.getTalkTextWinAutomationElement C# (CSharp) Method

getTalkTextWinAutomationElement() private method

Gets the automation element of the talk text window
private getTalkTextWinAutomationElement ( ) : AutomationElement
return System.Windows.Automation.AutomationElement
        private AutomationElement getTalkTextWinAutomationElement()
        {
            AutomationElement retVal = null;
            TalkWindowManager.Instance.GetTalkWindow().Invoke(new MethodInvoker(delegate
            {
                var talkWindowTextBox = TalkWindowManager.Instance.TalkWindowTextBox;
                retVal = AutomationElement.FromHandle(talkWindowTextBox.Handle);
            }));
            return retVal;
        }
    }