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
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",
What is the diff between image and bitmap check point?
What is post recovery scenario?
Can any one send me the QTP Basic Coding Samples?
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
What are the types of environment variables in qtp?
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
How to define array in qtp?
How the exception handling can be done using quicktest professional?
how can i pass a "cript"as a parameter in to a function
if our qtp vb Script may be Currepted then What we want do?
How will you handle java tree in qtp?
How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?
What is difference between run time object and test object?