RegularExpression for verifying minimum number - 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: RegularExpression for verifying minimum number (/Thread-RegularExpression-for-verifying-minimum-number) |
RegularExpression for verifying minimum number - bostonma - 03-30-2009 Hi I need to verify that a content is displaying in a webpage and details are as below could be one of two the below links in page AccountsWeb(15) AccountsTest(13) For the above I need to verify two things here. 1. A link is existing with "Accounts.*" 2.Number of results should be minimum 10 So I am assuming for first one it will be Code: Browser("xxx").Page("xxx").Link("html tag:=A","text:=Accounts.*") How do I verify that there are atleast 10 links resulted? RE: RegularExpression for verifying minimum number - dvkbabu - 04-15-2009 hi, Try the following to verify number of link displayed Code: Set Obj = Description.Create() Thanks, Vijay |