Hi @Keerthi97 ,There are couple of things I can suggest here:-If for
your requirement you can manage just to have a unique id for every time
a component is dropped in a page- ex- testcontainer-someUniqueId, then
use this documentation. You can have a js code to manipulate the
component just by searching the id. -
https://aem.redquark.org/2019/12/generate-id-for-aem-components.htmlif
you have to use 1,2,3... then you will have to right a custom js snippet
which will iterate through the dom by kee...