The Line 1 and 2 should be split by a “,”. Could you attach an actual video on usecase to clarify the request (how the text is not matching, is the 2 lines belong in 1 elements)? That would really help.
From your example, I have an assumption that you’ve chosen an element including 2 different elements. Could you please provide us its HTML (you could change the value inside the elements if it’s credential)?
I’ve created an HTML file with the example, but the result contains all texts in one line like this: “OPTEST ST FTEST”.
In my opinion, although the “span” tag nests in “p” tag, they are 2 different elements and we should verify them individually.
The problem is that I can’t register “OP TEST” without register “ST FTEST” ; so I can’t verify the string “OP TEST”.
Moreover, with an IDE register, it is not very practical to have to know the source code to make a register (by example, it is not a competence of our test jobs).