Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RegularExpression for verifying minimum number
#1
Not Solved
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?
Reply
#2
Not Solved
hi,

Try the following to verify number of link displayed

Code:
Set Obj = Description.Create()

Obj("micclass").value = "Link"
Obj("html tag").value = "A"
Obj("innertext").value = "Accounts.*"


set chobj = Browser("name:=xxxx").page("title:=xxx").ChildObjects(Obj)
Based on "chobj.Count" we can decide how many links are displayed with the name starts with "Accounts"

Thanks,
Vijay
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WinObject and RegularExpression softwareEngineer 4 4,448 07-24-2012, 01:00 PM
Last Post: K Gaurav Varshney
  Verifying the text on the dialog box americaneagle18 2 2,916 02-11-2009, 12:01 PM
Last Post: VENKATAREDDY_M

Forum Jump:


Users browsing this thread: 1 Guest(s)