Example8. Handling a disappearing popup dialog

(YouTube Example)

This is an example of testing the UI (ex. toast popup) that appears and disappears for a short time.

We run a test to see if the option menu disappears properly when you click "Save to Watch later" in the video options of the YouTube app.

Through this example, you can learn how to use Assert Message action.

Step0. Scenario Preparation - Connect your device to Stego and run Youtube on your device.

Step2. Click the Screen Analysis button in the toolbar of the device panel.

Step3. From the screen analysis result, move the video option button to the newly created step by drag & drop.

Step5. Execute the created step.

Step6. Create a new step, select “Touch” action, select OCR among the device screen analysis tools, and then drag and drop “Save to Watch later” on the screen to add it as the UIObject of the step.

Note) In case of OCR analysis, it can be recognized by being cut by word. If you want to select one sentence, select one sentence from the OCR result by dragging and dropping and it will be recognized as one sentence.

Step7. Create a new step, select the Assert Changed action, select Custom Box from the screen analysis tool, and set the option menu location by dragging. For more accurate detection of changes, the threshold value among Attributes is modified to 50%. If more than 50% of the area of ​​the range specified by Custom Box is different, the screen is detected as changed.

Step8. After running the test, click the result in the Output panel.

Step9. Check the test result in the step result window. The result window below shows that 61% of change was detected in the set area.

Last updated