TestProject Forum

Handle unexpected pop ups in recordings

For web test scenarios I am creating, is there a way to fail a test IF a specific pop up occurs?

to fail the test if a specific pop up occurs, you need do the following:

  1. Record a step that make the pop up disappear (click on Accept/Ok/Yes)
  2. Go to the steps advanced settings and select the INVERT STEP RESULT toggle
  3. save the step and run the test

if a specific pop up will occur and your step will be executed successfully your test will fail