I saw the feature request submitted 3 years ago about adding optional steps and conditional logic to the new WPM recorder (Allow optional steps and conditional logic for the new WPM recorder - Feature Requests - Web Performance Monitor (WPM) - THWACK). Honestly, this should really be part of it, especially with how common pop-ups are on websites these days. Not sure why it was taken out.
Most Web performance monitors have this feature.