Wednesday, 19 March 2014

How to select perticular item from Web list using QTP script


Ex: Web list contains below items.

Facebook
Yahoo
Twitter
Email



1) select item from web list using item index. Item index starts from 0.

Browser("OLM Training").Page("Cart_2").WebList("WebListBox").Select "#2"

o/p  Twitter


2) Select item from web list by using item name directly.


Browser("OLM Training").Page("Cart_2").WebList("WebListBox").Select "Email"

o/p  Email

No comments:

Post a Comment