setViewportSize broken? - Printable Version
+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: setViewportSize broken? (/showthread.php?tid=14792)
setViewportSize broken? - bminsky - 03-11-2017 03:42 AM
Starting around March 6, setViewportSize stopped changing the resolution. We run private instances, but I've tested on your site and see the same issue.
Here are the results:
Here's the script:
setViewportSize 375 667
Searching has turned up similar issues. The solution was to put a tab between the height and width but I don't believe that's the current issue. The script text field doesn't seem to take tabs, and when I click the yellow 'script' above the "Re-run the test" button it seem to have automatically added the tab.
RE: setViewportSize broken? - bminsky - 03-18-2017 12:35 AM
setviewportSize is still broken but we've found a solution for the API call.
Our dev team had been calling the API with ...runtest.php?........&width=375&height=667. After searching through runtest.php I decided to change 'width' and 'height' to 'browser_width' and 'browser_height'. It works for us now. I'm not sure if it was broken before and never should have accepted height&width, or if they're being overwritten by the browser_height/browser_width variables.
RE: setViewportSize broken? - sadhikari - 03-18-2017 04:58 AM
I am also experiencing the same issue. It stopped changing the browser size. I use runtest.php POST call. Adding width and height or browser_width and browser_height did not fix the issue. It keep runs the test in default window size no matter what the width/height are provided or passing the dimensions from setViewportSize.