insensitive combo-box selection ?? - 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: insensitive combo-box selection ?? (/Thread-insensitive-combo-box-selection) |
insensitive combo-box selection ?? - irahulsingh - 09-13-2011 Hello Friends, In one of the test case being executed from QTP, we have to choose a value from combo box in the web page. Now, the dataset present in the test case have the same items which are present in combo-box but in different format i.e if the value present in dataset is “Double AC”, value present in combo-box is “Double Ac” and similar for most of the values. So my query is can QTP make a insensitive search while calling weblist.Select OR weblist.ExtendSelect methods. Can this be done as presently QTP just matches the datavalue from the items present in combo-box. Thanks in Advance RE: insensitive combo-box selection ?? - vIns - 09-14-2011 interesting.... looks like there is no case insensitive select. we have a workaround... you can get the all the list values using getroproperty. put them in an array and do case insensitive comparison and get the index we can select using the index. Browser().Page().Weblist().select "#3" plz post if you find any other way...Thanks. |