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: http://www.webpagetest.org/result/140821_HZ_d79b81080d7eeccb3fac0d2f0d49af18/
Here is the user journey that I was trying to build:
- Visit http://www.avis.co.uk
- Set the search textbox value to ‘LHR’
- Load suggested results of airports
- Click on first airport
- Click on ‘Choose this Location’
- Select Date (anything in future)
- Select Time (leave the default value)
- Click on ‘Search for cars’
- Click on Choose
- Continue to ‘Review your booking’
Also see the code below:
// remember to tick the 'Ignore SSL Certificate Errors' checkbox under Advanced tab
combineSteps
navigate http://www.avis.co.uk
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?
Thanks,
Avi