Currently, I am working with an ElementFinder that fetches the element below:
<div class="label-div" style="width: 100%; height: 100%; font-family: Arial; margin-left: -43px; visibility: visible; font-size: 0.8em;" xmlns="http://www.w3.org/1999/xhtml">Helpdesk</div>
My query revolves around confirming if the font-size matches a specific value.
This situation is similar to question number 2664045, however it involves ElementFinders rather than Elements, and none of the responses tackled this issue directly.
I attempted
element.getCssValue('font-size')).toBe('0.8em');
, but encountered failure since it returned the font-size in pixels instead of em units.