Skip to main content
Astronaut
Jun 17, 2025 3:54 PM UTC
Question

Validating a value within a DIV in Testim

I am trying to find out if there’s a way to validate the first ‘2.9’ value of the label for the DIV below using either Testim’s Validate CSS or Validate HTML actions. If this is not possible, what would be the best way to perform this validation?

Thanks!

 

<div aria-label="Version: 2.9 (build 2.9.1)" class="vui-avatar vui-avatar--medium vui-avatar--icon"><svg viewBox="0 0 24 24" class="vui-icon vui-icon-vizi"><path class="vui-icon__item--fill-2" d="M12,4,8,6.26v4.57L4,13.15v4.54L8,20l4-2.27L16,20l4-2.35V13.1l-4-2.31,0-4.55L12,4ZM10,9.7V7.17L12,6l2.14,1.34V9.78L12,8.55,10,9.7Zm2,6.13-2.26-1.4v-2.6L12,10.53l2.26,1.26v2.6L12,15.83Zm4,1.94-2.16-1.2L16,15.38V13.06l2.24,1.24v2.31L16,17.77Zm-8,0L5.76,16.66V14.34L8,13.1v2.32l2.16,1.19L8,17.81Z"></path></svg></div>