cancel
Showing results for 
Search instead for 
Did you mean: 

UI Elements defined in the Template of a control not accessable

New Contributor

UI Elements defined in the Template of a control not accessable

Hello,

I have problems accessing (via TestLeft UI-Spy) UI-Objects of custom controls when they are defined in the template of the control itself.
CustomControl.png
I've attached a project which demonstrates my problem.

 

Am I doing something wrong here, or is this not supported by you at all?


Best regards,
Lorenz

3 REPLIES 3
Community Hero

Re: UI Elements defined in the Template of a control not accessable

Hi,

 

In TestComplete / TestExecute this is possible and is controlled on the project level (https://support.smartbear.com/testcomplete/docs/app-testing/desktop/wpf/template-support.html). But in TestLeft (maybe because of the absence of project file?) this seems not to be possible. (At least, the Open Applications entry is absent in the Options... menu.)

Maybe @HKosova will be able to comment on your question.

Otherwise, I would recommend to ask Support via the https://support.smartbear.com/message/?prod=TestLeft form. (I will appreciate it if you let us know what was Support's reply.)

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Moderator

Re: UI Elements defined in the Template of a control not accessable

Hi Lorenz,

 

@AlexKaras is right - the underlying engine supports WPF control templates, but this is something that is configured via engine options, and the TestLeft Options API currently does not provide access to WPF template options. Please open a support ticket and refer to this thread.


Helen Kosova
SmartBear Technical Writer
________________________

 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!
Community Hero

Re: UI Elements defined in the Template of a control not accessable

Helen,

 

Thank you a lot for fast and detailed reply!

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================