Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help about CreateObject
#4
Not Solved
so you have problem writing Descriptive Programming... I think the very 1st point of this post on Descriptive Programming and QTP (the one you have mentioned above) covers it all...and yes it is exhaustive also for the question you have put up...probably you need to read more carefully...

ok... will clarify once again...we will take the example from that post only...

Code:
Browser(“Browser”).Page(“Page”).WebRadioGroup(“Name:=txt_Name”,”html tag:=INPUT”).set “Test”

This example combines Object Repository(OR) and Descriptive Programming(DP) approach...that first two objects Browser and Page use OR and the last one WebRadioGroup use DP.

Now how to write DP? You need to find the unique property-value pair(s) [In the example above Name is property and txt_Name is its value similarly tag is property and INPUT is its value ]from the set of properties mentioned when you object spy on an object... an easier approach is to first record and find the unique properties QTP is using, then use the same property-value pair(s) for your DP code to identify the objects.

Similarly, you can extend this approach to Browser and Page objects.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Messages In This Thread
help about CreateObject - by stevol - 05-29-2008, 01:20 PM
RE: help about CreateObject - by Ankur - 05-29-2008, 04:26 PM
RE: help about CreateObject - by stevol - 05-30-2008, 05:20 PM
RE: help about CreateObject - by chrissolinsky - 11-23-2011, 08:28 PM
RE: help about CreateObject - by Ankur - 05-30-2008, 11:28 PM
RE: help about CreateObject - by anemuday - 07-17-2008, 11:30 AM
RE: help about CreateObject - by vineet1234 - 01-08-2009, 11:39 AM
RE: help about CreateObject - by stevol - 01-13-2009, 03:54 PM
RE: help about CreateObject - by SUSHEEL_VIG - 07-26-2009, 09:03 PM
RE: help about CreateObject - by tkmseie - 11-19-2009, 07:21 PM
RE: help about CreateObject - by arunshuklainbox - 01-25-2016, 02:48 PM
RE: help about CreateObject - by rajpes - 07-30-2011, 07:13 AM
RE: help about CreateObject - by sreeswetha - 08-19-2011, 12:51 AM
RE: help about CreateObject - by s_shiva - 11-23-2011, 11:16 AM
RE: help about CreateObject - by atul2038 - 09-23-2011, 05:34 PM
RE: help about CreateObject - by Ankur - 09-23-2011, 05:51 PM
RE: help about CreateObject - by shivu.impu - 02-17-2012, 01:23 PM
RE: help about CreateObject - by vinod123 - 11-19-2015, 02:08 PM
RE: help about CreateObject - by smiley - 10-04-2016, 08:38 AM
RE: help about CreateObject - by arunshuklainbox - 10-04-2016, 09:22 AM
RE: help about CreateObject - by arunshuklainbox - 10-04-2016, 09:26 AM
RE: help about CreateObject - by metaforum - 05-14-2018, 02:28 PM
RE: help about CreateObject - by preethishetty - 08-02-2018, 12:36 PM
RE: help about CreateObject - by swethareddy - 04-16-2019, 11:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Detail info about createObject() nandu 1 4,116 11-30-2010, 10:36 AM
Last Post: Saket
  Need list of "objects" used in qtp by using "CreateObject" SaranKumarV 2 15,536 09-15-2010, 05:03 PM
Last Post: SaranKumarV
  What is the exact meaning of CreateObject() Rajashekar Gouda 1 5,354 01-17-2008, 02:37 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 11 Guest(s)