Micro Focus QTP (UFT) Forums
Is this one instance where descriptive programming does not work? - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Is this one instance where descriptive programming does not work? (/Thread-Is-this-one-instance-where-descriptive-programming-does-not-work)

Pages: 1 2


RE: Is this one instance where descriptive programming does not work? - harishshenoy - 10-09-2012

Its is not good way to use Index , Its better use the web table with regular expressions to make the object unique , Please try the below code with little modifications as required , it might work Smile

Code:
Browser("name:=Delta - Book a flight").Page("title:=Delta - Book a flight").webtable("html id:=selectFlightsSegment.*" , "innertext:=.*Economy (L).*").webelement("innertext:=Select").click