Starting with Desktop App v1.28.7, the mabl Trainer supports training on elements inside scalable vector graphics (SVGs)!
SVGs are a popular file format for web graphics that allow for high-quality and scalable images. Enhanced SVG support makes it easier to interact with and assert against applications that use SVGs for complex graphics, such as charts.
Previously, if you tried to click or assert on an <svg>
element, the mabl Trainer would not identify the element. Users had to use workarounds, such as custom find steps, JavaScript snippets, or interacting with the actionable element that contained the SVG, such as a button or a link.
With this enhancement, you can now interact with <svg>
elements and elements within an <svg>
using native clicks and assertions in the mabl Trainer!
Clicking on a <circle>
element inside of an <svg>
Known limitation
The mabl Trainer cannot record clicks or assertions on specific coordinates within <path>
elements. For example, imagine an SVG of a cat that is drawn only using a single <path>
element.
The Trainer cannot click on a specific coordinate within this SVG, such as the cat's eye.
To learn more about working in the mabl Trainer, check out our documentation.