10-22-2009, 09:18 PM
I did not find any issue , may be you can try using getroproperty to get the amount or else paste your lines of code from expert view. I would like to have a look on that.
[/quote]
Saket,
This is the code. I have made a space where the error occurs.
'The following line is where the error happens on the 2nd iteration
[/quote]
Saket,
This is the code. I have made a space where the error occurs.
Code:
Browser("Browser").Dialog("Security Information").WinButton("Yes").Click
Browser("Browser").Dialog("Security Information").WinButton("Yes").Click
Browser("Browser").Page("Hibernian Aviva car insurance,").Image("Get a car quote").Click
Browser("Browser").Page("Car insurance quote and").Image("Get a car quote").Click
Browser("Browser").Dialog("Windows Internet Explorer").WinButton("OK").Click
Browser("Browser").Page("Car insurance quote and").WebCheckBox("acceptedTerms").Set "ON"
Browser("Browser").Page("Car insurance quote and").Image("Get a car quote").Click
Browser("Browser").Page("Car Insurance - Basic").WebEdit("proposer.dob").Set "23/09/1971"
Browser("Browser").Page("Car Insurance - Basic").WebRadioGroup("proposer.gender").Select DataTable("Gender", dtGlobalSheet)
Browser("Browser").Page("Car Insurance - Basic").WebEdit("proposer.contactDetail.email").Set "tt@hotmail.com"
Browser("Browser").Page("Car Insurance - Basic").WebList("proposer.districtCode").Select "Dublin 6"
Browser("Browser").Page("Car Insurance - Basic").WebRadioGroup("licenceDuration").Select "5"
Browser("Browser").Page("Car Insurance - Basic").WebList("proposer.drivingHistory.licenc").Select "Full Irish"
Browser("Browser").Page("Car Insurance - Basic").WebList("proposer.drivingHistory.ncdYea").Select "1"
Browser("Browser").Page("Car Insurance - Basic").WebList("proposer.drivingHistory.ncdSou").Select "Insurance Policy in your own name"
Browser("Browser").Page("Car Insurance - Basic").WebList("proposer.drivingHistory.curren").Select "FBD Insurance"
Browser("Browser").Page("Car Insurance - Basic").WebList("proposer.drivingHistory.penalt").Select "1"
Browser("Browser").Page("Car Insurance - Basic").WebList("proposer.drivingHistory.annual").Select "5,001 - 10,000 miles / 8,001 - 16,000km"
Browser("Browser").Page("Car Insurance - Basic").WebRadioGroup("policy.numOtherHibPolicies").Select "0"
Browser("Browser").Page("Car Insurance - Basic").WebRadioGroup("vehicle.hybrid").Select "N"
Browser("Browser").Page("Car Insurance - Basic").WebList("vehicle.make").Select "Ford"
Browser("Browser").Page("Car Insurance - Basic").WebEdit("vehicle.dateFirstRegd").Set "1999"
Browser("Browser").Page("Car Insurance - Basic").WebEdit("vehicle.registrationNumber").Set "99D4536"
Browser("Browser").Page("Car Insurance - Basic").WebRadioGroup("vehicle.typeOfFuel").Select "P"
Browser("Browser").Page("Car Insurance - Basic").WebEdit("vehicle.cc").Set "1200"
Browser("Browser").Page("Car Insurance - Basic").WebEdit("vehicle.approxValue").Set "7000"
Browser("Browser").Page("Car Insurance - Basic").WebRadioGroup("vehicle.leftHandDrive").Select "N"
Browser("Browser").Page("Car Insurance - Basic").Link("Get your quote").Click
'The following line is where the error happens on the 2nd iteration
Code:
Browser("Browser").Page("Car Insurance - Quick").Link("€868.54€910.13€41.59Just").Click
Browser("Browser").Page("Car Insurance - Quick").Check CheckPoint("Quote")
Browser("Browser").Page("Car Insurance - Quick").Link("Price breakdown").Click
Browser("Browser").Page("Car Insurance - Quick").Link("Basic Details").Click