MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - Test Timeoust With JavaScript Polling

WebPagetest Forums

Full Version: Test Timeoust With JavaScript Polling
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I have just setup a private instance of WebPageTest and I have been trying out the scripting.

The problem I have is some of the pages I'm testing use javascript polling. This means WebPageTest doesn't know when the page has finished loading and the test times out and no data is returned.

Does anyone who or a way to get around this?

The script I have written is as follows

logData    0
navigate    https://www.somesite/login

setValue    name=UserName    user
setValue    name=Password    letmein

logData    1
click    id=loginSubmit
sleep    2

logData    0
sendClickAndWait    id=LogOutButton

Have you tried using setActivityTimeout to increase the timeout value?

Or if it's just for one step setTimeout might do the trick for you:
Hi Andy

Thanks for the answer but that doesn't seem to work.
The setActivityTimeout doesn't work because the page is always active due to the polling.
The setTimeout does make the page timeout, like I want it to, however I don't get and data back. Instead I get and error message where the waterfall diagram should be
"First View: Test Data Missing"

any other ideas?

Reference URL's