Using web page test with a custom IP address

I recently had a need to speed test a site that was almost launched. Since the site required an SSL cert we’d been doing our final tests with local host files. However, we wanted to get an external network’s view of our site and for that we always use the wonderful http://www.webpagetest.org/. The obvious problem that we ran into was that they wouldn’t have access to our local copies of DNS.

Luckily the answer was simple, they have a great scripting interface along with very comprehensive documentation.

All we had to do was enter this into the Script tab:

setDns www.example.com 456.456.456.456
navigate https://www.example.com