Forum Discussion
Thanks for the reply AlexKaras , I will conclude that the current Testcomplete does not have support for Angular Material framework . It has full support for standard html components including the specified ones specified on the page https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/controls/index.html only .
Regards.
Hi,
> It has full support for standard html components [...] only .
Not exactly ;)
You may consider also https://support.smartbear.com/testcomplete/docs/app-testing/web/web-components/custom-elements.html and https://support.smartbear.com/testcomplete/docs/app-testing/web/general/object-identification/using-custom-attributes.html options.
- Mpho_Mogapi6 years agoOccasional Contributor
Hi ,
Please go to the link https://material.angular.io/components/select/overview and try to spy on the select item and show me a screenprint like so
on the two select elements below the Basic select heading.
- AlexKaras6 years agoChampion Level 3
Hi,
Well, I can see exactly the same as on your screenshot.
Summary: page is supported and correctly recognized by TestComplete.
The control you are referring to is marked up as 'select' and has id attribute with the value of 'mat-input-0'. This can be seen as the values of the corresponding properties in the Object Browser (namely: ObjectType, ObjectIdentifier and outerHTML). Thus TestComplete identifies the given web element as Select("mat_input_0") in the Object Tree (with the dashes replaced with underscores) and you may search for the object and address it in your test code using the above properties.
Yes, all web elements above the one been discussed do not have identifiers and this means that you will have inconveniences when working with the page. But this is not the problem of TestComplete but the usual problem of web page design when web elements are not assigned unique identifiers. For whatever reason developers use for their excuse.
So, what does not work for you?
Related Content
Recent Discussions
- 6 hours ago
- 7 hours ago
- 12 hours ago