I was trying to write the code in Descriptive Programming for a normal web application. I have read some articles and QTP documentation but I still can't get it fully as they dont have examples. Please can any one explain me by taking the example of Mercury Sample Web application http://mercurynewtours.com/ For "Registration of the user" and "Sign-In" functionalities.
I read the documents. It is really a great document!! But I still have some questions. That is atleast for one time I think we need to record for to get the browser and page and then only we can play on the properties later I guess.
Sriqtp, briefly use Browser("micClass:=Browser).Page("micClass:=Page) for any Browser,Page you have ; then you add the object you want recognize by it's main properties which you can get by using Object Spy
here are most used (WEB)Objects
finally you put the event you wanna execute on the above object such as:Click,Exist,GetROProperty("property_name"),...e tc.
now to click a link you have to add all the above together-without recording anything-
Browser("micClass:=Browser").Page("micClass:=Page" ).Link("tagName:=A","innerText:=put_link_name_here ").Click
here you go
hope it's useful.
"I realize it's an error, but no one is going to try to do that!"
From "Top 10 Stupid Comments from Developers".