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

Answer Posted / vamshi

browser("title:=.*").page("title:=.*").webcheckbox("name:=.*","index:=9").set "on"
browser("title:=.*").page("title:=.*").webcheckbox("name:=.*","index:=10").set "on"
browser("title:=.*").page("title:=.*").webcheckbox("name:=.*","index:=13").set "on"
because index value starts from zero

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between design time and run time data table?

576


What is a data driven test in qtp?

569


What is the registration process and examination fees?

543


How do you send email with attachment from outlook using qtp ?

557


How to run a test using quicktest professional (qtp)?

531






What are parameterizing tests?

541


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1490


By using QTP can we record any log files written by the application which is in execution?

1465


Can we create user defined functions in qtp?

548


What are the five challenges you faced in QTP?

2743


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2165


what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

1439


I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

1473


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1559


What is expert view in qtp?

573