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
What is difference between design time and run time data table?
What is a data driven test in qtp?
What is the registration process and examination fees?
How do you send email with attachment from outlook using qtp ?
How to run a test using quicktest professional (qtp)?
What are parameterizing tests?
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.
By using QTP can we record any log files written by the application which is in execution?
Can we create user defined functions in qtp?
What are the five challenges you faced in QTP?
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?
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?
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
How is recording done when a application is over lapping the QTP application it gives a message object not recorded
What is expert view in qtp?