MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - Page loading successfully but results unavailable

WebPagetest Forums

Full Version: Page loading successfully but results unavailable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,

Whilst trying to build the following user journey using WPT scripting, I found the last step bit tricky. On my private instance I see the browser loading the page correctly, however WPT doesn't capture the results (of step=10). All the other steps look fine except step=10.

Result is here:

Here is the user journey that I was trying to build:

1. Visit
2. Set the search textbox value to 'LHR'
3. Load suggested results of airports
4. Click on first airport
5. Click on 'Choose this Location'
6. Select Date (anything in future)
7. Select Time (leave the default value)
8. Click on 'Search for cars'
9. Click on Choose
10. Continue to 'Review your booking'

Also see the code below:

// remember to tick the 'Ignore SSL Certificate Errors' checkbox under Advanced tab

execAndWait    $('#hire-search').focus();
execAndWait    $('#hire-search').val('LHR');
execAndWait    $('#hire-search').trigger('keyup');
execAndWait    document.getElementsByClassName('flyout-name-content')[0].click();
execAndWait    document.getElementsByClassName('select-location')[0].click();
execAndWait    document.getElementsByClassName('ui-state-default')[30].click();
execAndWait    document.getElementsByClassName('additional-control')[0].click();
execAndWait    document.getElementById('car-search-submission1').click();
sleep    5
execAndWait    document.getElementsByClassName('continue')[1].click();
execAndWait    $('#packages-submit').trigger('click');
sleep    2

Any suggestions on how I can get the results of last step in WPT?

Which browser and are you using the latest wptdriver? Main reason I ask is that I made a bunch of changes a few weeks ago to improve the exec* support (particularly for chrome). Before it was running in a sandbox and didn't have access to things like JQuery. Now it should be using the same interface that dev tools does.

If you run the same commands in the F12-dev tools console does it work?

You also have a lot of "andwait" commands. Do all of those actions trigger navigation? You should use "exec" commands for the ones that just interact locally with the UI and save the "andwait" commands for things that generate network activity and have to wait for something to come back.
The browser we are using is Chrome. Also I have tried in recent public WPT.

Yes, I have tried all the commands in F12-dev tools console and it works fine.

Also I have taken off few "andWait" and retained only the ones that need them, here is the result:

Unfortunately, the results of last step is still not logged.
Reference URL's