How to locate an element in case id and class names are dynamically changing?

I see the other attributes are having unique value to locate the element than id or css? How can I use other attributes as a locator in seleniumLibrary?