How to compare a certain text inside a WebEdit box? - 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: How to compare a certain text inside a WebEdit box? (/Thread-How-to-compare-a-certain-text-inside-a-WebEdit-box) |
How to compare a certain text inside a WebEdit box? - chong67 - 08-24-2012 I want to compare a WedEdit box and if it has this WORD on it, do something. For example, I have a WedEdit box with a drop now that has: "MyCard VISA, *************1111, exp 07/2020" on it. I want to compare it to the word VISA in it and if find that word, do something. It is on a website. Thanks for helping. RE: How to compare a certain text inside a WebEdit box? - sshukla12 - 08-24-2012 Hi, Use regular expression to very a single word in complete string or u can use Instr also. Let me know in case of any help required. Regards, Sankalp RE: How to compare a certain text inside a WebEdit box? - Ankesh - 08-24-2012 try this Code: if Instr("MyCard VISA, *************1111, exp 07/2020","VISA")>0 Then Regards, Ankesh |