Issue with webcheckbox.
I have a function which does the following.
It click on WebCheckBox and set value in WebEdit box. I may have five WebCheckBox in a page and if I pass number five in my parameter then it does ok. Now, my concern is what if I pass number six instead of five. Script waits and looks for the sixth checkbox and it fails. How do I control this so that it will not continue after it clicks on the last WebCheckBox eventhough I may pass six or seven.
Re: Issue with webcheckbox.
You have to count in the loop how many WebCheckBoxes are present on the page in the current RunTime,
then pass this count value into parameter, which holds this value.
Then with if\else stop QTP for looking next WebCheckBox,
something like that:
if (count>5) then
'your stop code