Itβs best to use Selenium to set unique identifiers in your code.
Since there is no configuration button, you need to attach an identifier for the buttons after creating the button. In ExtJS 3, we used the ID for the buttons:
dlg.getDialog().getEl().select('button').each(function(el) { el.dom.id = 'confirm-' + el.dom.innerHTML; });
Unfortunately, in ExtJS 4 this no longer works, so I'm looking for a new solution .; -)
source share