How to grab dynamically changing HTML names of the classes?

Viewed 165

My case:

I would like to write automatic tests by using 'Test Cafe', but I have a problem with class names.

The problem is: every time (on every reload of the page) the class has a different name like for example 'Example-Class-XXX' where XXX is the number. I couldn't find any solution, do you know how to select the class?

Maybe there is something similar to:

Selector('.Example-Class-*') or document.getElementById('Example-Class-*') 

If you have any idea, please share. Thanks

1 Answers
Related