Scripting issue in Chrome with Single Page Apps? - Printable Version
+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Scripting issue in Chrome with Single Page Apps? (/showthread.php?tid=14846)
Scripting issue in Chrome with Single Page Apps? - mverkerk - 04-07-2017 04:18 AM
I am having issues running scripts in Chrome and it seems to be related to (a) the target being a Single Page App and (b) the navigate command not detecting the end condition. The same script runs fine in Firefox!
Also: I have a private instance of WPT that runs through a batch of URLs/Scripts every 2 hours and I found that tests targeting Single Page Apps started showing this behavior on or around the beginning of March ... I proceeded to run one of these scripts on public WPT and got the same issue:
Firefox working: http://www.webpagetest.org/result/170404_PC_86d7cdef6320929570839f6e1ebaa2c6/
Chrome failing: http://www.webpagetest.org/result/170404_DB_f6efa3f2e9b157533223d31bc67d1a99/
The Chrome screenshots are still showing the sso.godaddy.com page (from the initial navigate statement) while the Firefox screenshots are showing the desired target page.
Agents are currently on version 371
If anybody is seeing this behavior or wants to troubleshoot this, hit me up!
RE: Scripting issue in Chrome with Single Page Apps? - mverkerk - 04-08-2017 05:00 AM
I made a quick video showing the agents doing their work - one running Firefox and the other Chrome. You can see Firefox (on the left) going through the entire script and reaching the intended page, both for the First and Repeat View. Chrome (on the right) stops almost immediately after it starts navigating to the intended page (it decides that the page is complete too early) ...