Skip to content

Instantly share code, notes, and snippets.

@tleach
Created December 31, 2014 20:10
Show Gist options
  • Save tleach/7cacf928910042f40056 to your computer and use it in GitHub Desktop.
Save tleach/7cacf928910042f40056 to your computer and use it in GitHub Desktop.
Saucelabs pre-run script to prevent the browser from attempting to load Google Ads content (which has a habit of causing tests to hang)
echo 127.0.0.0 pagead2.googlesyndication.com >> %WINDIR%\System32\Drivers\Etc\Hosts
echo 127.0.0.0 googleads.g.doubleclick.net >> %WINDIR%\System32\Drivers\Etc\Hosts
echo 127.0.0.0 google.com >> %WINDIR%\System32\Drivers\Etc\Hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment