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?
Description
|
Checkpoint failed.
Cannot identify the object "AIUtil("button", "Update")". |
Execution Time
|
2024-05-30 13:50:51
|
Properties
|
||||
|
||||
Certainty of object identification
|
||||
0.00%
|
||||
Text Match Method
|
||||
micAIMatch
|
||||
AI Checkpoint Information
|
||||
|
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