04-30-2009, 12:36 AM
Hi
I am currently using QTP 9.2 to test a web application developed using TIBCO graphical interface.
Most of the objects are being identified as WebElements. I would like to use the outerhtml property value to identify the objects.
The outerhtml has a long list of details within.
Eg: <SPAN>yfgeryhferfcuhuehufhehf label="test".dewhdhewdewdh label="test2".....label="test3".... label="test"....
I would like to verify the FIRST occurence of label within the string as the label differs for every object. I tried using the below syntax within the OR for the outerhtml property.
1> .*.label=\"test\".*
2> .*.label=&chr(34)&"test"&Chr(34).*
Can you please let me know the correct syntax for the same.
Regards,
Sushma
I am currently using QTP 9.2 to test a web application developed using TIBCO graphical interface.
Most of the objects are being identified as WebElements. I would like to use the outerhtml property value to identify the objects.
The outerhtml has a long list of details within.
Eg: <SPAN>yfgeryhferfcuhuehufhehf label="test".dewhdhewdewdh label="test2".....label="test3".... label="test"....
I would like to verify the FIRST occurence of label within the string as the label differs for every object. I tried using the below syntax within the OR for the outerhtml property.
1> .*.label=\"test\".*
2> .*.label=&chr(34)&"test"&Chr(34).*
Can you please let me know the correct syntax for the same.
Regards,
Sushma