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:
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",
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.
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")