If you have a lot of pop ups that use a set of controls and also have a lot of controls in the set, you might try organizing the controls in a reusable element for clarity. It can avoid the slog of differentiation the name of an 10+ Identical buttons.
If there’s not enough repetition to warrant a reusable element, then definitely attempt giving unique names to everything. It can feel tedious but I find the ability to search for elements by unique text is very helpful.