Created
May 25, 2017 16:10
-
-
Save bjoerntx/0cecda6f1f09b29ae35ff5bcdca9c2aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// start the application | |
AutomationElement element = StartApp("tx_wpf_client.exe"); | |
// get TX Text Control | |
AutomationElement textElement = GetTextElement(element); | |
object valuePattern = null; | |
if (textElement.TryGetCurrentPattern( | |
ValuePattern.Pattern, out valuePattern)) | |
{ | |
((ValuePattern)valuePattern).SetValue("This is text"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment