WebPagetest Forums
waitForJSDone problem - window.webpagetest undefined - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: waitForJSDone problem - window.webpagetest undefined (/showthread.php?tid=13950)



waitForJSDone problem - window.webpagetest undefined - ash - 09-25-2015 12:16 AM

I am trying to use the statement in tested page code:

if( window.webpagetest ) {
window.webpagetest.done();
}

Unfortunately it does not work. I use IE11 and IE9 on my private agents.

Is waitForJSDone statement still available?


RE: waitForJSDone problem - window.webpagetest undefined - ash - 09-25-2015 04:26 AM

I've prepared the test case in the public Internet

http://www.webpagetest.org/result/150924_ZQ_7c847fa0712512cd92a231ec916ac7a0/

tested page includes code:

if( window.webpagetest ) {
window.webpagetest.done();
} else {
$('#warningMessage').html('not webpagetest');
}

You can see the message in red 'not webpagetest' on screenshot


RE: waitForJSDone problem - window.webpagetest undefined - pmeenan - 09-30-2015 01:20 AM

I don't think that has been implemented in wptdriver, just the older urlblast code.