Find and select text - 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: Find and select text (/Thread-Find-and-select-text) |
Find and select text - betterthanjordan79 - 10-08-2012 Hi everyone, I am trying to create a script that will find a specific piece of text on a webpage and when it does it either clicks it or selects it in any other valid way. I have tried using the record tool to read my inputs but I have had no success with this method. All I really need would be the line of code or the function which would work in the instance. Any help is appreciated. Many thanks, Daniel RE: Find and select text - harishshenoy - 10-09-2012 Hi , You can make use of descriptive programming , or regular expressions in the Object repository to identify the object containing the required test and then apply 'select' or 'click' action on it. please attach screenshots showing which text you want to select , so that we can try out. thanks, Harish |