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 / brahma.quality

systemutil.Run "iexplore","http://www.computerhope.com/jargon/c/checkbox.htm"
Set odesc=description.Create
odesc("micclass").value="webcheckbox"
Set Child= Browser("title:=What.*").Page("title:=What.*").ChildObjects(odesc)
CheckboxesCount= Child.count

For i=0 to CheckboxesCount-1
Child(i).set "on"  ' clicks all checkboxes in the given page
Next

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is smart identification in QTP?

624


What is regular expression?

577


Explain how you can replace string in qtp?

601


While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?

1419


What do you mean by iteration?

628






I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

1843


Tell me about your project? please help me how to tell about insurance project

1529


i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script

1414


how u will evaluate the tool for test automation?

1367


I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com

1471


If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?

1737


What is the extension of qtp local repository?

570


What are the Disadvantages of shared object repository?

568


What is test object?

694


Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)

1631