Micro Focus QTP (UFT) Forums

Full Version: UFT Tool support with Descriptive programming
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All ,

Am learning Descriptive programming with UFT tool so can someone suggest  me where am going wrong.

Iam trying to run the below code to open the gmail page with sign in option , but every time i run ending up with the attached error below .

Can you please help me out here and thanks for taking time and reading my thread.




code:

==============

systemutil.Run"C:\Program Files\internet explorer\iexplore.exe","www.gmail.com/"

Browser("Creationtime:=0").Page("Gmail - Gmail - Free Storage and Email from Google").Link("text:=Sign In").Click


==================
You are committing a basic mistake that most newbies to Descriptive Programming do.

Once you write DP for a given object, you have to write DP for all the child objects in the chain. You wrote the browser object in DP, then switched to Page object in non-DP which is the issue. 

Check this  Guide on Descriptive Programming.