To avoid going crazy again, is it possible to get the value of the htmlTemplateof this element?
<rect x="303" y="28" height="53" width="10" htmlTemplate="foo: 115" class="foo"></rect>
I would like to get the number of that foo, so just the number 115
If you just want to assert the value
foo: 115then you can do this.Now if you want to extract the number part, you can do something like this:
If you have more than one rect and you want to access the first one you can use
eq(0)If you want to get the value of all the rects, you can use
each(), something like: