We have a dynamic webtable where rows keep on adding.I have to click on particular row where the status changes to Update or Save.How do you click on Status(either it can be Update or save)

Answers were Sorted based on User's Feedback



We have a dynamic webtable where rows keep on adding.I have to click on particular row where the sta..

Answer / pushkar1206

rw=browser("Browser").Page("Page").WebTable("Table 1").RowCount
For i=1 to rw
a=browser("Browser").Page("Page").WebTable("Table 1").GetCellData(i,6)
If a="Hello" Then
Set b=browser("Browser").Page("Page").WebTable("Table 1").ChildItem(i,6,"webbutton",0)
b.click
End If
Next

Is This Answer Correct ?    1 Yes 0 No

We have a dynamic webtable where rows keep on adding.I have to click on particular row where the sta..

Answer / dinesh1433

'Get Column number of Status from table eg: it is 5
intColNumber=5

set objTable=Browser("index:=0").page("index:=0").Webtable("index:=0")
intRowNumber=objTable.getRowWithCellText("Update") ' i have taken example of update
set objChildObject=objTable.ChildItem(intRowNumber,intColNumber,"WebElement",0)

objChildObject.click

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

Hi, Has anybody attended IBM interview on 17th APR 2010,and got offer letter? I had given interview and selected also but still did not recieve offer letter.

5 Answers   IBM,


hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]

0 Answers   Accenture,


How u call functions in QTP

5 Answers   Lehman Brothers,


Please anybody can tell the where can i get the information about pharma and bank testing, i put the pharma&bank projects in my resume, so i dont know what to tell about them, so where can i get the information and what we test for these, i need domain information, what r the screen we test?

0 Answers  


What is parameterization? What is syncronization pt.?

3 Answers   Semantic Space, SRM,






Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?

4 Answers  


What is meant by Repository?

7 Answers   ALFiNE IT Solutions, Four soft,


I want to learn Advanced QTP, suggest me the best faculty in Hyderabad

12 Answers  


suppose by navigation i went from 1st page to 5th page write a script for coming from any page to the 1st page abd by executing where the page may be . it will come to 1st page give the code using gmail. give me mail id so that i can under this answer with out any doubt

1 Answers  


explain qtp framework by taking an example?

3 Answers  


How to parameterize Object Repository?

2 Answers  


can i able to connect any version of qtp to any version qc

2 Answers  


Categories