03-15-2008, 12:31 AM
Hi there,
does anyone know if QTP can read/retrive any non-standard HTML attributes?
For example, I have a DIV component, it can have some attributes called " uniquename", "hasChildren" etc.
say if the DIV has an html id as "div 1" ,uniquename as "Accounts" I can locate the DIV by doing calling :
I got an empty string. The same if I am using GetTOProperty("uniquename")
Also using Object Spy, I can not fetch the value for the attrubute even I have modified the object identification to specifically add in the "uniquename" as my mandatory display element attribute.
Many thanks for your insight.
Carol
does anyone know if QTP can read/retrive any non-standard HTML attributes?
For example, I have a DIV component, it can have some attributes called " uniquename", "hasChildren" etc.
say if the DIV has an html id as "div 1" ,uniquename as "Accounts" I can locate the DIV by doing calling :
Code:
Browser("title:=InfoView").Page("title:=InfoView").Fram("title:=InfoView").WebElement("html id:=div 1").Click()
When I write:
msgbox Browser("title:=InfoView").Page("title:=InfoView").Fram("title:=InfoView").WebElement("html id:=div 1").GetROProperty("uniquename")
I got an empty string. The same if I am using GetTOProperty("uniquename")
Also using Object Spy, I can not fetch the value for the attrubute even I have modified the object identification to specifically add in the "uniquename" as my mandatory display element attribute.
Many thanks for your insight.
Carol