08-26-2014, 10:39 PM
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...f0d49af18/
Here is the user journey that I was trying to build:
1. Visit http://www.avis.co.uk
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:
Any suggestions on how I can get the results of last step in WPT?
Thanks,
Avi
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...f0d49af18/
Here is the user journey that I was trying to build:
1. Visit http://www.avis.co.uk
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:
Code:
// 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