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.