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

Give me some scripts for 1). checking webpage links (counting links,opening web pages,counting child elements)

2 Answers   CIL,


what is the Debug view?

1 Answers  


What are the automation metrice in your project?

0 Answers   Accenture,


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

0 Answers  


Discuss quicktest professional (qtp) environment?

0 Answers  






Have you performed Debugging and how did you?

2 Answers  


Explain about business process component? types and usage?

0 Answers  


In qtp, how you can exit for loop?

0 Answers  


How does quicktest professional identifies the object in the application?

0 Answers  


I have 3 add buttons of same properties in my page but i want trigger one of them i required in my recovery scnario manager is qtp recognizes it to recovre d scnario if so how qtp recognizes it

3 Answers  


can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???

0 Answers  


HI, Based On The Information Below Write A Data Driven test Script Edit Box 1 Should take Value From Num1 Column Edit Box 2 Should take Value From Num2 Column Click On Add Button, Get The Value Of Exp res Column, Get Value From Actual Result Edit Box , Compare Two Values, Write Pass / Fail Value Into Result Column Thanks In Advance... Kavitha Input.Xls Num1 Num2 Exp res Act res Result 10 30 40 40 Pass 50 40 90 90.5 - - - - - - - - - - - - - - - -

5 Answers   UHG,


Categories