开发者

How to eliminate disabled items in combox box in QTP

开发者 https://www.devze.com 2023-03-23 14:45 出处:网络
I am new to QTP . I am doing automation on a Java Application, which has a combo box and in which few items are disabled but when I try to retrieve values from it , it takes all of t开发者_开发百科hem

I am new to QTP . I am doing automation on a Java Application, which has a combo box and in which few items are disabled but when I try to retrieve values from it , it takes all of t开发者_开发百科hem including the ones which are disabled.

How cal I eliminate disabled items for JavaList and capture only enabled values Please Help!


Get the innerhtml of the combobox and split along the html tag. Check for disabled attribute by using InStr and you can get the values that are disabled.

0

精彩评论

暂无评论...
验证码 换一张
取 消