snippet code on img below
I want to assert text on p clas = jss94 jss102 jss127 jss264 jss265
This class is dynamic, and all the class before it also dynamic. So how to get the text or how to select the element if there's no static id/class/text on it?
You can use the withAttribute
method:
.withAttribute('class', /jss\w+\sjss\w+/)
Please refer to the following: