How compare Test Object dynamic attribute with WebUI ( Verify Greater Than )


I have a chart. A width of the chart depends on a screen size.
I need to check if the width is Greater Than min value (fixed).

Could you please advise how to call the dynamic attribute and proper way to use ‘Greater Than’ assertion to this element?

Thank you in advance!


Welcome to the forum.

You need to use WebUI.getAttribute() and/or WebUI.verifyAttribute()

Remember that these methods return Strings. You will need to convert them to integers to do math operations on them.