01-19-2012, 08:31 PM
Hi,
In my application,36 webelements are there if i click each webelement it shows some check boxes and i want to 'ON' those check boxes.
but the thing is after running the script 30 to 40 min,it fails to count the chkboxes,it shows the count as 0.if i close the application and run again then it counts correctly.
Am using the below code
.....................................................
.......................................................
iam using,
QTP 9.2
IE-7
TIBCO UI,java application.
Any one help me one this please.
Regards,
Mahendra.
In my application,36 webelements are there if i click each webelement it shows some check boxes and i want to 'ON' those check boxes.
but the thing is after running the script 30 to 40 min,it fails to count the chkboxes,it shows the count as 0.if i close the application and run again then it counts correctly.
Am using the below code
.....................................................
Code:
Dim obj_check,allcheckboxes
Set obj_check=Description.Create
obj_Check("html tag").value="INPUT"
obj_Check("type").value="checkbox"
Set allcheckboxes=Browser("Browser").Page("Page").ChildObjects(obj_check)
chkboxCount= allcheckboxes.count()
'MsgBox chkboxCount
For m=0 to chkboxCount-1
If Browser("Browser").Page("Page").WebCheckBox("html tag:=INPUT","index:="&m).Exist(15) Then
CboxCheck= Browser("Browser").Page("Page").WebCheckBox("html tag:=INPUT","index:="&m).GetROProperty("checked")
If CboxCheck=0 Then
Browser("Browser").Page("Page").WebCheckBox("html tag:=INPUT","index:="&m).Set "ON"
Browser("Browser").Page("Page").Sync
End If
End If
Next
Browser("Browser").Page("Page").Image("CTRL_Save").Click
iam using,
QTP 9.2
IE-7
TIBCO UI,java application.
Any one help me one this please.
Regards,
Mahendra.