text exists or not - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: text exists or not (/Thread-text-exists-or-not) |
text exists or not - sujaravi123 - 11-07-2011 Hi I need to check existence of a particular text in a web area for eg: the text i want to search is "world" Can anyone please help me with this? can this be achieved through text checkpoint? RE: text exists or not - Ankesh - 11-07-2011 Get the text of the object and use Instr function to check for the particular text u r looking for. Plz refer to QTP help to get the syntax of Instr function. Regards, Ankesh RE: text exists or not - ravi.gajul - 11-07-2011 Yes you can use Text checkpoint RE: text exists or not - as_srini - 11-09-2011 Use the text checkpoint. Second option get the object name where this text is displayed and get the run time properties and verify whether it is matching to your expecting string. Thx |