Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to uniquely identify a checkbox
#1
Not Solved
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

Code:
objchkbox ("index").Value=ind                                        
val=SwfWindow(objTemplate).SwfCheckBox(objchkbox).GetROProperty("hwnd"            
SwfWindow(objTemplate).SwfCheckBox(objchkbox).Set "on"             SwfWindow(objTemplate).SwfScrollBar("vScrollBar").NextLine (30)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Select checkbox from data table value jayraocourts 0 1,244 11-01-2019, 10:25 PM
Last Post: jayraocourts
Sad Click checkbox using its label name. venkatesh9032 1 3,180 08-10-2015, 10:33 PM
Last Post: kotaramamohana
  Childobject return wrong checkbox count.. VpnQTP 1 2,845 04-09-2015, 09:07 PM
Last Post: babu123
  How to select dynamic checkbox from web dropdown QA_Newbie 2 4,666 07-20-2014, 09:40 PM
Last Post: QA_Newbie
  How To pick up the particular mail in Post Login Gmail page and click on Checkbox akhandesh 0 2,834 12-02-2013, 01:35 PM
Last Post: akhandesh

Forum Jump:


Users browsing this thread: 2 Guest(s)