Thanks for the suggestion. Unfortunately, wait statement even for upto 30 sec does not work. My code is as follows(pl. refer video 1 Chapter 3). Would be grateful if you could help please.
'Repeat x number of times
'For vIter = 1 to 2
'Parameters can change values
vLoan = "350000"
vTerm = inputbox("Enter term of the loan")
vRate = "4"
'msgbox vLoan & vTerm & vRate
print vLoan & vTerm & vRate
'Application 1 : Bankrate.com
Set br_com = browser("Mortgage Calculator").Page("Bank Rate") 'Reference or shortcut of the page
br_com.WebEdit("LoanAmount").Set vLoan
br_com.WebEdit("Term").Set vTerm
br_com.WebEdit("Rate").Set vRate
br_com.WebList("Lmonth").Select "Jan"
br_com.WebList("Ldate").Select "12"
br_com.WebButton("Calculate").Click
wait 3
br_op = br_com.WebEdit("Payment").GetROProperty("value")
msgbox "monthly payment " & br_op
wait 3
'Application 2 : Mortgage Calculator.com
'Add objects to local then write the logic and navigate to different URL
'Create a bank object mc_org and put a pointer to that specific page
Set mc_org = browser("Mortgage Calculator").Page("MC Org")
mc_org.WebEdit("param[principal]").Set vLoan
mc_org.WebEdit("param[term]").Set vTerm
mc_org.WebEdit("param[interest_rate]").Set vRate
mc_org.WebEdit("param[property_tax]").Set "0"
mc_org.WebEdit("param[pmi]").Set "0"
mc_org.WebButton("Calculate").Click
'Synchronization points are aimed at synchronizing the object or app or bringing to a specific state before continuing
'mc_org.Sync 'Sync will instruct QTP to wait for MC Org page to get loaded before proceeding to next step
wait 3 'Different from sync when you don't know how long to wait.
browser("Mortgage Calculator").Page("MC Org").Output CheckPoint("mcorg_op")
msgbox environment("mcorg_op") 'To get out of an environment variable
msgbox mc_org.WebElement("Payment").GetROProperty("innertext")
'next