Working with WebList
To check whether weblist is exist on page or not.
Var=Browser(“title:=browser”).Page(“title:=page”).WebList(“html id:=name”).Exist(10)
Msgbox var
If var returns true then weblist exist on page.
Click on Weblist
Browser(“title:=browser”).Page(“title:=page”).WebList(“html id:=name”).Click
Get particular item from weblist
Var=Browser(“title:=browser”).Page(“title:=page”).WebList(“html id:=name”).GetItem(2)
Msgbox var
Var return second element from the weblist
To get count of Weblist item
Var= Browser(“title:=browser”).Page(“title:=page”).WebList(“html id:=name”).GetROProperty(“items count)
Msgbox var
To select particular item from list
Browser(“title:=browser”).Page(“title:=page”).WebList(“html id:=name”).Select(2)
It will select second item from the list
To count how many weblist exist on the page
Set oDesc = Description.Create()
oDesc("micclass").Value = "WebList"
Set Lists = Browser(“title:=browser”).Page(“title:=page”).ChildObjects(oDesc)
NumberOfLists = Lists.Count()
Msgbox NumberOfLists
To get last element from weblist
Itemcnt= Browser(“title:=browser”).Page(“title:=page”).WebList(“html id:=name”).GetROProperty(“items count)
Itemvalue= Browser(“title:=browser”).Page(“title:=page”).WebList(“html id:=name”).GetItem(Itemcnt)
Browser(“title:=browser”).Page(“title:=page”).WebList(“html id:=name”).Select Itemvalue
Thank you so much for the explanation...
ReplyDeletehow can I compare the values of weblist vs data that I found in database?
ReplyDelete