In our project we need to create automated testing in the CMS site using Selenium, however, to identify the HTML elements into the CMS site is difficult, there is not an unique identifier for some. Is there any way to add a custom attribute or a custom class name to an element? in that way I can use that to identify the element.
yes this can be a problem. You can of course add classes in your template, even fed by your components. It will have to be custom work on your part however. One way would be to add unique ids/classes in your templates directly. You can put a string on the request and use that as a prefix for ids/classes in your template.