AIUtil If CheckExists(True) Then fails the test when the item doesn't exist

I have the below code using the AIUtil.CheckExists function

If the "Update" button exists then it should, set a radio button to on and click the Update button.

However if the item is already at the latest version then the Update button is a "Launch" button instead so it should simply click the Launch button.

When the button is the Launch the test is failing withthe following that the checkpoint failed. Any pointers on what i am doing wrong?

Checkpoint
AIUtil("button", "Update").CheckExists
Description
Checkpoint failed.
Cannot identify the object "AIUtil("button", "Update")".
Execution Time
2024-05-30 13:50:51
AI Object
Properties
text
Update
control_class
button
Certainty of object identification
0.00%
Text Match Method
micAIMatch
AI Checkpoint Information
Expected Value
TRUE
Actual Value
FALSE

If AIUtil("button", "Update").CheckExists(True) Then
    AIUtil("check_box", "Launch when ready").SetState "On"
    AIUtil("button", "Update").Click
ElseIf AIUtil("button", "Launch").CheckExists(True) Then
    AIUtil("button", "Launch").Click
    AIUtil("close").Click
End If

Parents Reply Children
No Data