How-To: Block Unwanted Domains
Sep 25, 2023
When running automated tests it’s important that that environment is controlled, with no rouge GTM scripts injecting popups, or other domains interfering with the DOM.
This provides a challenge when running automated tests if the popup criterion is not consistent (for example, a 50/50 split on popup showing). So the question is: How do I block popups in Automated Tests?
To find that pesky popup source can be difficult. We recommend you look for any 3rd party calls (outbound calls that are not from your domain) on page load. This can help you hone in on the domain that is causing the popup. Below is a list of 10 examples.
Popup Maker Domain: popupmaker.com
Elementor Domain: elementor.com
OptinMonster Domain: optinmonster.com
SumoMe (Sumo) Domain: sumo.com
Ninja Popups Domain: arscode.pro
Bloom by Elegant Themes Domain: elegantthemes.com
TrustPulse Domain: trustpulse.com
WP Popups Domain: wppopups.com
Thrive Leads Domain: thrivethemes.com
ConvertPlus Domain: convertplus.io
With DoesQA, you are able to block domains from your account settings. As an example, we are blocking popup.welovetesting.com in the below image.
Now all tests that run on our platform automatically block this hostname. This way there will be no interference with the test that is running.