Skip to main content

How to handle pop-ups in a website using designer?

LastThe reviewed:user Septemberwill 21,not 2026

be

Use this articleknowing when Scenarioexactly Editorthe testswindow encountermight browserbe dialogs,popped modalup windows,and permissionhas prompts,to or application pop-ups.

  • Identify whetherhandle the popup iswith an if condition so that, if a browserparticular dialog, application modal, new tab,message or permissiona prompt.
  • Avoidlink fixedor sleeps;an waitimage is present in the popup and the user recognizes that particular element and has to take necessary decisions. Here is an example for the popupmentioned situation and its implementation in Appvance Designer.

    Consider user navigates to www.appvance.com. The user might get a pop up sometimes and sometimes not. Hence we have used an If condition that matters.

  • Do not automatically grant browser permissions unlesswith the testAppvance caseDesigner explicitlyAPI requires(_isVisible_Heading("Sign it.
up

Validationfor workflow

email
  1. Triggerupdates")) which returns the actionBoolean thatvalue opensbased on the presence of the heading "Sign up for email updates". If the condition is true, then the further actions are performed on the popup inand aif controlledthe step.
  2. Waitcondition is false, the span of If condition is skipped for further continuation of the script.

    Here is the script attached for the specificabove dialog,mentioned modal,example tab, or message to appear.

  3. Validate the popup text or state before interacting with it.
  4. Accept, dismiss, or close the popup according to the test objective.
  5. Return focus to the main workflow and verify the expected page state.

Note:Popup.ds Older

“Designer” wording has been replaced with Scenario Editor terminology.

Last updated: SeptemberJuly 21,03, 20262023

If you have any feedback on this topic, please contact us at documentation@appvance.ai.