Hi,The question is write a script for the following
scenario.
scenario:in a job portal i entered QTP 3yrs testing then
click search button.then it displays results like
Test lead bangalore (here is a checkbox).
Test lead hyderabad check box
so on...
question is if test lead position in bangalore then
checkbox shld be enabled automatically..
Answer Posted / balaji
Better Capture the webtable rowcount and columncount like
row=Browser("<name>").Page("<Page>").Webtable
("<tablename>").rowcount
column=Browser("<name>").Page("<Page>").Webtable
("<tablename>").columncount
For i=1 to row
For j=1 to column
val=Browser("<name>").Page("<Page>").Webtable
("<tablename>").getcelldata(i,j)
if instr(val,"Test Lead")>0 then
Browser("<name>").Page("<Page>").Webtable
("<tablename>").childitem("Webcheckbox",i,j).Select "On"
next
next
Reach me @9894207910 if u want more info.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
What is difference between run time object and test object?
What is the basic concept of quicktest professional (qtp)?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com
What is different command used in command Prompt while using QTP?
What is the syntax to call one action in another?
What are the different types of qtp test assets and their extensions?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script
What is the Difference between test object and run time object?
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
Hai anyone please "Explain about Framework in QTP?"
How to find Operating system information using QTP script?
Please guide me release notes of Automation once scripts are completed