One Testing Center

QTP - Keyword Driven Framework. QTP Learning Book - Learn By Questions. QTP Learning Book - Made Easy - Part1. QTP Learning Book - Made Easy - Part2. QTP Quality Center - QC.

QTP - Frameworks

QTP - Frameworks. Record and Play back Framework. Action Driven Framework. Data Driven Framework. Functional Decomposition Framework. Keyword Driven Framework. Hybrid Framework. Test Driven Framework.

QTP - Automation

QTP - Basics. QTP - Intermediate. QTP - Advanced. QTP - Frameworks.

QTP - Training

Friends, Welcome to OneTestingCenter. I am HP Functional Test ExportOne. I am HP Automation Functional Test Certified Professional. I am certified for HP Functional Test 11.x. Happy to share my knowledge.

QTP - Books

QTP - Keyword Driven Framework. QTP Learning Book - Learn By Questions. QTP Learning Book - Made Easy - Part1. QTP Learning Book - Made Easy - Part2. QTP Quality Center.

Recent Post

Showing posts with label QTP - Descriptive Programming - Any Web App - Working with Web List-boxes. Show all posts
Showing posts with label QTP - Descriptive Programming - Any Web App - Working with Web List-boxes. Show all posts

QTP - Descriptive Programming - Any Web App - Working with Web List-boxes

QTP - Descriptive Programming - Any Web App - Working with Web List-boxes

OneTestingCenter @ QTP @ Descriptive Programming @ Working with Web Lists


'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
'Any Web App - Working with any list box
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Set oPage=Browser("name:=.*").Page("title:=.*")

Set oWebList=Description.Create()
oWebList("micClass").Value="WebList"
oWebList("Html Tag").Value="Select"
'oWebList("Index").Value="0"

Set AllWebList=oPage.ChildObjects(oWebList)

MsgBox "AllWebList" & vbtab & AllWebList.Count


For i= 0 to AllWebList.Count-1
MsgBox AllWebList(i).GetROProperty("name")
WebListItemsCount=oPage.WebList("Index:=0").GetROProperty("Items Count")
MsgBox WebListItemsCount
Next


For i= 0 to WebListItemsCount-1
oPage.WebList("Index:=0").Select(i)
' wait(2)
If oPage.WebList("Index:=1").Exist(5) Then
SecondListItemsCount=oPage.WebList("Index:=1").GetROProperty("Items Count")
For j=0 to SecondListItemsCount-1
oPage.webList("Index:=1").Select(j)
          Next
End If
Next

'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
'Any Web App - Working with any list box
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

GAReddy @ OneTestingCenter @ All Articles