How to handle pop-ups in a website using designer?
LastThe reviewed:user Septemberwill 21,not 2026
Use this articleknowing when Scenarioexactly Editorthe testswindow encountermight browserbe dialogs,popped modalup windows,and permissionhas prompts,to or application pop-ups.
Recommended guidance
Identify whetherhandle the popupiswith an if condition so that, if abrowserparticulardialog, application modal, new tab,message orpermissionaprompt.Avoidlinkfixedorsleeps;anwaitimage is present in the popup and the user recognizes that particular element and has to take necessary decisions. Here is an example for thepopupmentioned situation and its implementation in Appvance Designer.Do not automatically grant browser permissions unlesswith thetestAppvancecaseDesignerexplicitlyAPIrequires(_isVisible_Heading("Signit.
Validationfor workflow
email Triggerupdates")) which returns theactionBooleanthatvalueopensbased on the presence of the heading "Sign up for email updates". If the condition is true, then the further actions are performed on the popupinandaifcontrolledthestep.Waitcondition is false, the span of If condition is skipped for further continuation of the script.Here is the script attached for the
specificabovedialog,mentionedmodal,exampletab, or message to appear.Validate the popup text or state before interacting with it.Accept, dismiss, or close the popup according to the test objective.Return focus to the main workflow and verify the expected page state.
Note:Popup.ds
Older
Last updated: SeptemberJuly 21,03, 20262023
If you have any feedback on this topic, please contact us at documentation@appvance.ai.