In my code, I have multiple elements structured like this:
<g transform="matrix">
<image xlink:href="data:image/png" width="48">
</g>
<g transform="matrix">
<image xlink:href="specific" width="48">
</g>
<g transform="matrix">
<image xlink:href="specific" width="48">
</g>
My goal is to select an element that does NOT contain 'specific' in its name. The challenge lies in the fact that sometimes there are multiple of these non-specific elements and other times none at all. However, there will always be exactly one non-specific image.
The issue I am facing is due to the presence of ':' in the attribute name.
This is what I have attempted so far:
public static getEventIconOnMap: ElementFinder =
element.all(by.css('image[width="48"]:not(image[xlink\\:href*="specific")')).last();