Approaches To Capturing A Dynamic And Inconsistent App Pop-Up

Unable to capture a pop-up that appears may or may not appear in the application, and fetch the value from the pop-up. The values in pop-up may change based on the input data and the step that is being processed.

Issue Description: Unable to capture a pop-up that appears may or may not appear in the application, and fetch the value from the pop-up.
The values in pop-up may change based on the input data and the step that is being processed.


Resolution: The following development approaches could be useful,

  1. Validate the messages appearing on the pop-up and number of pop-ups that can appear based on the input data/step being processed
  2. Ensure all the pop-ups with different messages are being captured using On Element Appear Activity with stable selectors such as (aaname , innertext) in a workflow
  3. The captured pop-ups can be invoked in a Switch statement / State Machines based on the requirement
  4. Based on the pop-up that appears the flow can be continued with next set of activities such as Get Text/ Get Attribute etc to fetch the value from the pop-up
  5. Implementing the Check App State activity using modern design in Studio
  6. Implementing the Element Exists activity using classic design in Studio.