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

SyntaxEditor for WPF Forum

Posted 3 years ago by Sree Sreeraman
Version: 16.1.0633
Avatar

Hi,

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?

Thanks,

Sree

[Modified 3 years ago]

Comments (2)

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

Hello,

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 3 years ago by Sree Sreeraman
Avatar

Thank you. That was a useful hint.

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.