Example9. Checking a specific desktop icon

(Android Home)

This example checks if there is a Play Store app icon on the desktop.

If there is no Play Store app icon on the desktop, the error message "Play Store app icon is not on the desktop" is output as a test result.

Step1. Create a new step and select "Assert UIObject" as the action.

Step2. Click the "Analyze Screen" button in the device panel.

Step3. Select "OD" among screen analysis tools (default) and drag and drop the Play Store app icon screen element to the UIObject Field area of ​​the step.

Step4. In Assert UIObject's Attributes, enter comparator as "EXISTS" and custom message as "Play Store app icon is not on the desktop."

Caution) If the comparator condition is false, a custom message is output.

Step5. If you run the scenario you created with the Play Store app icon deleted from the device, the following result is output.

Last updated