Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Which properties to use to access or identify (runtime) objects using script ???
#2
Not Solved
I guess, for Link or WebTable objects (that are not in local or shared Repository), in which case direct script is used to identify, we cannot use Title attribute/property to identify. If we see in HP QuickTest Professional Object Model Reference -> Web (environment) -> Link ->Click on Link identification properties-> we do not see title property listed among the others.
However the Note in the same help document-page says as below:
Quote:You can also view a list and descriptions of the Link identification properties, for use in object repository descriptions, programmatic descriptions, checkpoint and output value steps, and as argument values for the GetTOProperty and GetROProperty methods.

But, When I go into QTP->Tools->Object Identification->(select) Web->Link-> I see title as one of the properties that can be used to identify...Why would they give title as a choice for an identification property if the other Note in Object Model Reference Help says differently.

Kind of confused. Please correct me if I am wrong. Probably I might be missing some basic concept here.

Also, I try to grab a collection of link objects using script, I get their getROProperty "title",
Code:
Set linkDescription = Description.Create()
linkDescription("html tag").value="A"
Set links = Browser("Browser").Page("Page").Frame("Frame").ChildObjects(linkDescription)
links(iter).getROProperty("title")
I do not see anything even though the title in the HTML source has value in it. Using Object Spy, I am able to see the value for the title. I do not understand this difference of behavior between the Object spy and the script.
Reply


Messages In This Thread
RE: Which properties to use to access or identify (runtime) objects using script ??? - by sepgs2004 - 03-06-2009, 01:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT CAN'T IDENTIFY OBJECTS ORGIO 3 2,132 07-28-2018, 01:25 AM
Last Post: marcelodruida
  UFT unable to identify Java app objects consistently lester 1 1,802 07-12-2018, 08:28 PM
Last Post: Ankur
  Collecting Objects And Object State At Runtime zunebuggy 3 1,544 11-22-2017, 02:37 PM
Last Post: supputuri
  How to identify hidden objects shinoj123@gmail.com 1 4,072 09-13-2015, 01:21 AM
Last Post: ADITI1992
  Qtp 10.0 Not able to identify objects on Win 8.1 64 bit OS hpuser 1 2,168 06-11-2015, 06:43 PM
Last Post: venkatesh9032

Forum Jump:


Users browsing this thread: 1 Guest(s)