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..
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / suresh
vbCheckBox("name").set "ON"
is to select the specific CB.
Iam afraid, I could not understand what you are asking
for...
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / tvs ramakrishna chowdary
balaji is obsolutely correct...
| Is This Answer Correct ? | 1 Yes | 0 No |
what version of test director supports the QTP? does testdirector supports the QTP9.0?
Explain about business process component? types and usage?
Can any one please explain hwo to test client/server application using QTP?
Suppose U change the script whether it affect the object properties of the object in the object repository
In qtp,how to interact tool & application build?
How to load a object repository(using VBScript) ... very urgent....
Suppose there are 100 links in a web page and the number of links will be changing dynamically from time to time. I need code such that every time i had to click on the last link of the web page.
How to Test Dynamic links ?
How to add multiple values in rows, under a single column of a run time datatable?
How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?
Where is the Bitmap checkpoint information stored?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click