How to Use "Not on Page" in Architect

When testing dynamic elements of your site, it's helpful to verify that an item is no longer visible or available to the user. A great tool for testing this type of behavior is called "Not on Page" in Architect. This can be useful for confirming proper navigation between site pages, pop-up windows, and items like context-based state changes in menus.

 

Verifying an Element is Not on the Page

  1. Start a new test with Architect.
  2. Determine the element (in our example, we are selecting an image that isn't shown elsewhere on the site) which will be verified as not on the page.
  3. Add a Verify action to the image.
  4. Open the details for the verify action by clicking the white circle.
    Screen_Shot_2021-11-22_at_5.57.25_PM.png
  5. Open the ADV Selector tab and select the xpath for the image.
    Screen_Shot_2021-11-22_at_5.57.41_PM.png
  6. Close the details panel.
  7. Click on the site to open a new page.
  8. Click the blue + button to open the Action panel.
    Screen_Shot_2021-11-22_at_5.58.25_PM.png
  9. Select Not On Page.
  10. Enter the xpath for the element copied from the Verify action into the Search Selector Expression text box. You also have the option of entering an Attribute, an Operator, and the Element Value for a stronger search.
    Screen_Shot_2021-11-22_at_5.58.52_PM.png
  11. Click Continue to add the Not On Page step to your test and close the Action panel.
    Screen_Shot_2021-11-22_at_5.59.08_PM.png
  12. Save your test.
  13. When the test is run, it will verify the element is not found on the page.
    Screen_Shot_2021-11-22_at_6.01.56_PM.png