Micro Focus QTP (UFT) Forums
UFT Tool support with Descriptive programming - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: UFT Tool support with Descriptive programming (/Thread-UFT-Tool-support-with-Descriptive-programming)



UFT Tool support with Descriptive programming - laks - 07-02-2018

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


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


RE: UFT Tool support with Descriptive programming - Ankur - 07-05-2018

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.