Not able to access SyntaxEditor Text via Coded UI (or TestStack.White)

SyntaxEditor for WPF Forum

Posted 8 years ago by Sree Sreeraman
Version: 16.1.0633


Coded UI recognizes the SyntaxEditor control as a WpfText element (equivalent to a readonly text label). I would have expected that it was recognized as a WpfEdit (equivalent to a textbox). But, even with the WpfText, the DisplayText property comes back as empty. Even going down to the AutomationElement, the Name property comes back as empty.

Is there a way I could access the SyntaxEditor Text from the Windows Automation API?



[Modified 8 years ago]

Comments (2)

Answer - Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA


The SyntaxEditor control implements ITextProvider and IValueProvider.  If you check IValueProvider.Value, it will give you the document's full Text.

Actipro Software Support

Posted 8 years ago by Sree Sreeraman

Thank you. That was a useful hint.

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.