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

SyntaxEditor for WPF Forum

Posted 10 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 10 years ago]

Comments (2)

Answer - Posted 10 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 10 years ago by Sree Sreeraman
Avatar

Thank you. That was a useful hint.

The latest build of this product (v25.1.3) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.