WebPagetest Forums
Error trying to test a page that requires authentication on chrome mobile - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Error trying to test a page that requires authentication on chrome mobile (/showthread.php?tid=13444)



Error trying to test a page that requires authentication on chrome mobile - jorge.romera - 12-16-2014 03:32 AM

Hey guys, first post! I'm having an error trying to test a page that requires authentication on chrome mobile. It only happens when I try to do the test on mobile. In other browsers (at least the ones that I've tried) is working fine. I set the url, on the auth menu i set the user and password and I got this error:

WPT script contains unsupported line[1]: navigate "mypagewitauthenticationmypagewitauthentication.com --- support is limited to: setDnsName H1 H2\n [overrideHost H1 H3]\n navigate H4

I've tried to script it but I got the same result:

Code:
navigate mypagewitauthenticationmypagewitauthentication.com
setHeader('Authorization','Basic ' + EncodingUtil.base64Encode('myusername' + ':' + 'mypassword'))

Result:

The test failed to run.
WPT script contains unsupported line[0]: navigate mypagewitauthenticationmypagewitauthentication.com --- support is limited to: setDnsName H1 H2\n [overrideHost H1 H3]\n navigate H4


Anyone have any idea of what's going on?

Thanks!!!!


RE: Error trying to test a page that requires authentication on chrome mobile - pmeenan - 12-16-2014 06:32 AM

The mobile agents don't support scripting (and under the covers auth uses a script to set the headers). The only way (currently) to do it would be to use desktop chrome with mobile emulation enabled (in the chrome tab of advanced settings).