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,
- Validate the messages appearing on the pop-up and number of pop-ups that can appear based on the input data/step being processed
- 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
- The captured pop-ups can be invoked in a Switch statement / State Machines based on the requirement
- 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
- Implementing the Check App State activity using modern design in Studio
- Implementing the Element Exists activity using classic design in Studio.