using Regular Expressions in OR - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: using Regular Expressions in OR (/Thread-using-Regular-Expressions-in-OR) |
using Regular Expressions in OR - sushma - 04-30-2009 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 |