10 Oct 2013 12:47 AM #1
Unanswered: How to add IDs to Update and Cancel buttons in rowEditing
Ext-JS by default provides the dynamic ID to the elements rendered. I need to give an unique constant ID for Update and Cancel buttons in grid that are generated for rowEditing. Can anyone please let me know how to attach the IDs to Update and Cancel buttons.
10 Oct 2013 1:57 AM #2
14 Oct 2013 9:36 PM #3
For automation tool
We need to provide the id to those buttons to use that in automation tool. The IDs got changed for each rendering. In automation testing we need to provide the ID which will not change. So if we can provide the IDs to that, they will be consistent to find in the automation testing.
15 Oct 2013 12:50 AM #4
Providing you can design a ComponentQuery for the grid:
Ext.ComponentQuery.query('<query for grid>').editingPlugin.getEditor().getFloatingButtons().down('#update').id
Ext.ComponentQuery.query('<query for grid>').editingPlugin.getEditor().getFloatingButtons().down(':not(#update)').id
15 Oct 2013 1:37 AM #5
We are using HP QTP, where we cannot use the component queries to get the id. In automation we will capture the flow and write the scripts with the IDs. If the id are changed dynamically, scripts will fail.
Please let me know if we can provide ID or name to that buttons.
15 Oct 2013 8:06 AM #6