How to verify text using Squish
<p>I am automating a windows application using Squish. I am trying to verify if the required text is displayed in a window after I make some changes in the GUI. I used object spy to get the object ID, but I am confused how to give  a test verification point. The following Verification point  says in the results window as 'True' and 'True' are equal. But I want it to be as, for example 4X and 4X are equal.</p>

<pre><code>test.compare(findObject("{name ='textObjective'}").enabled, True)
</code></pre>

<p>Thank You!!</p>

<p>Instead of the <code>enabled</code> property, you can also compare any other property - e.g. the <code>text</code>:</p>

<pre><code>test.compare(findObject("{name ='textObjective'}").text, "4X")
</code></pre>

python squish