07-04-2012, 02:32 PM
Hi
I am working on a windows form .Net application using QTP and there are a set of checkboxes which are repeated and all have the same property.I need to select the one particular checkbox from each set.If the checkbox is not visible on the screen then we need to scrool down else in pops a error message.Is there a way to select one particular checkbox from each set.
I tried the below code in a loop but its not selecting the checkbox in all the sets,it skips some sets
I am working on a windows form .Net application using QTP and there are a set of checkboxes which are repeated and all have the same property.I need to select the one particular checkbox from each set.If the checkbox is not visible on the screen then we need to scrool down else in pops a error message.Is there a way to select one particular checkbox from each set.
I tried the below code in a loop but its not selecting the checkbox in all the sets,it skips some sets
Code:
objchkbox ("index").Value=ind
val=SwfWindow(objTemplate).SwfCheckBox(objchkbox).GetROProperty("hwnd"
SwfWindow(objTemplate).SwfCheckBox(objchkbox).Set "on" SwfWindow(objTemplate).SwfScrollBar("vScrollBar").NextLine (30)