verying Text in WebButton - 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: verying Text in WebButton (/Thread-verying-Text-in-WebButton) |
verying Text in WebButton - Meghana1 - 08-07-2012 Hi, I am very much new to QTP and working some web sites. I am working on weblist which contains multiple values and when ever a value from the drop down is selected, the text of the Web Button changes according to the value selected. Ex - if the drop down value is Red, the Save button would be " save RED" and it changes if the value is selected as "green". ( "save Green") To select the value from Weblist, i am using For loop but the web button is not identified the by the qtp when ever the value is changed. Note - it works fine with first value of the drop down. I have checked by enabling the smart identification and later disabled it. QTP gives error as " web button has same properties values, use different properties values to identify the object uniquely." Kindly Help. Thanks in Advance! RE: verying Text in WebButton - pradeep singh - 08-08-2012 Use regular expression for this. RE: verying Text in WebButton - Ankesh - 08-08-2012 try using Code: Browser().Page().WebButton("name:=save.*").click or else you can go for select case if at all the above solution is not working. Regards, Ankesh |