Hi Team,
We need you advise in creating and identifying automation IDs for the UltraWebToolbar items
Here is how we use the infragistics controls in our application. We are loading these controls in a frame.
Though we are able to add AutomationID for UltraWebToolbar, the UISpy is not able to detect the element with the automation ID and we didnt find an option for TBarButton.
<add tagPrefix="igtbar" namespace="Infragistics.WebUI.UltraWebToolbar" assembly="Infragistics.WebUI.UltraWebToolbar" />
<igtbar:UltraWebToolbar ID="uwtbOptionBtns" runat="server" BackgroundImage="" ImageDirectory="" ItemWidthDefault="" SkinID="igUltraWebToolbar" OnButtonClicked="uwtbOptionBtns_ButtonClicked"> <Items> <igtbar:TBarButton Image="/images/tbNew.gif" Key="ADD" > </igtbar:TBarButton> </Items> </igtbar:UltraWebToolbar>
Could you please guide us is there any other way of adding automationID for TBarButton and identify using UISpy Tool.
Please let us know if we can provide any more clear information you need which can help for investigation.
Meanwhile,if we find any further clear information we will post you those updates.
Thanks & Regards,
Rajkumar Uppala.
Hi Uppala,
I am afraid this is not supported out of the box. Generally when AutomationID is not available, ID should be working fine too for test automation tools like UISpy. I am not sure whether the UltraWebToolbar items expose an ID property. If not I guess you should extend the control to add attributes. More information can be found at https://social.msdn.microsoft.com/Forums/en-US/a095be18-ab07-4ba3-b1f9-bf1413e19943/using-automationid-for-web-controls?forum=vsautotest
Thank you for the response on this.
We will try to verify the suggestions and take your help if necessary.
Hi,
Could you please help us in sharing a sample ASP.Net web application with automation ids as per my description in my initial post.. which designed inside frames that can be identified by UI Spy..
We have plenty of ASP.NET samples at https://ko.infragistics.com/samples/aspnet/(not available for download, but you can just create yours based on those.
Nevertheless I see you are using the old UltraWebToolbar, and I am not able to provide any further help on that. (regarding our Product Lifecycle the support for the old controls has expired). Furthermore, the UI Spy tool is also considered obsolete and developers are recommended to use other tools (https://msdn.microsoft.com/en-us/library/ms727247(v=vs.110).aspx)
Please let me know if you have other questions.