09-05-2012, 07:50 PM
I wrote a script on A page to direct to B page.
Script as follows:
setHeader Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
logData 0
navigate http://flights.ctrip.com
sleep 2
setValue id="DCity1" SHA
setValue id="ACity1" BJS
setValue id="DepartDate1TextBox" 2012-09-01
logData 1
navigate exec window.location.href = "http://flights.ctrip.com/booking/"+document.getElementById('DCity1').value+"-"+document.getElementById('ACity1').value+"----adu-1/?Dayoffset=5&DDate1="+document.getElementById("DepartDate1TextBox").value+"";
And I watch the instance to open the browser.It will first open http://flights.ctrip.com and then go to next page.
But the screen shot get the first page(http://flights.ctrip.com) even I set logData 0.
I want the next page screen shot.
Is there anything I'm missing?
Help me
~~ Thanks a lot~
Script as follows:
setHeader Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
logData 0
navigate http://flights.ctrip.com
sleep 2
setValue id="DCity1" SHA
setValue id="ACity1" BJS
setValue id="DepartDate1TextBox" 2012-09-01
logData 1
navigate exec window.location.href = "http://flights.ctrip.com/booking/"+document.getElementById('DCity1').value+"-"+document.getElementById('ACity1').value+"----adu-1/?Dayoffset=5&DDate1="+document.getElementById("DepartDate1TextBox").value+"";
And I watch the instance to open the browser.It will first open http://flights.ctrip.com and then go to next page.
But the screen shot get the first page(http://flights.ctrip.com) even I set logData 0.
I want the next page screen shot.
Is there anything I'm missing?
Help me

