06-21-2012, 11:09 AM
Hi guys,
I am using QTP10 and .NET application.
I am using Descriptive programming.
I have a problem when qtp is trying to select the particular check box from multiple check boxes.
All the check boxes have below mentioned same properties. there is no unique property.
type, HTML tag, calss,outerhtml properties.
there is no unique property like name, html id...
And index value is there. But when we are using the index number during script execution itis selecting wrong checkbox.(here the problem is, suppose in team one resource is executing the qtp scripts, other resource is testing manually and is creating some other check boxes. so, no.of checkboxes are increased.in this situation Index property is not working.)
Sample Code is:
Any one know the solution pls reply.
Thanks in advance!
I am using QTP10 and .NET application.
I am using Descriptive programming.
I have a problem when qtp is trying to select the particular check box from multiple check boxes.
All the check boxes have below mentioned same properties. there is no unique property.
type, HTML tag, calss,outerhtml properties.
there is no unique property like name, html id...
And index value is there. But when we are using the index number during script execution itis selecting wrong checkbox.(here the problem is, suppose in team one resource is executing the qtp scripts, other resource is testing manually and is creating some other check boxes. so, no.of checkboxes are increased.in this situation Index property is not working.)
Sample Code is:
Code:
If Browser("title:=http://172.16.220.24/Proof/PageManager.aspx ").Page("url:=http://172.16.220.24/Proof/PageManager.aspx").Frame("html tag:=IFRAME","title:=PROOF"). WebCheckBox("html tag:=INPUT","type:=checkbox").Exist Then
msgbox "hi"
End if
Thanks in advance!