If there are 100 checkboes in a page then how can we select all chexkboxes at once through descriptive programing in QTP using vb script.
Please send the answers...

Answer Posted / dinesh1433

for i=0 to 100

Browser("index:=0").page("index:=0").webcheckbox("index:="&i).set "on"

Next

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Both static and dynamic arrays are handled by the vb script. Is it true?

565


how to find that tools work well with ur existing system?

1356


What is the use of sendkeys and what are send keys

1955


Is qtp supports uni-code?

618


give me an example where u used good judgement and logic in solving a problem

3362






Why to use descriptive programming?

571


Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com

1435


What is a Patch in QTP?

608


Explain how you can find length of array in qtp?

601


How to test the login page in different ways in automation testing and i need code?

1350


What is the difference between shared and local object repository?

618


what could go wrong with test automation?

1507


If the objects hierarchy is changing from build to build, then how you will handle that condition?

621


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

546


What is fragmentation and paging?

1594