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

Explain the views in the QTP GUI?

0 Answers  


how many wayes we do the parameterization?

1 Answers  


What is the difference between "Call to copy of action", "Call to existing action" & "Call to winrunner action"?

5 Answers  


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,


I want to create Excel object on another machine which is in network i written the code "Set se=createobject ("Excel.Application","\\ankur")"here \\ankur is the name of that machine but i m getting the error of permission denied create object can anybody help me

2 Answers  






If u r using descriptive programming to identify the object where do u write the script for those objects? do u write it in the expertview? plz do answer its urgent thanks advance.

3 Answers  


if anyone has idea of the interview procedure in covansys, plz send me a mail?

0 Answers  


What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance.

11 Answers   Polaris,


What r steps to migrate from Manual testing to QTP?(IN BOTH WEB BASED AND WINDOWS APP)

1 Answers   Wipro,


Is there a function to find the number of occurrences of sub strings within a string?

1 Answers  


how to add run-time parameter to a datasheet?

1 Answers   Mphasis, Ordain Solutions,


When The Low Level Recording is Used in QTP

17 Answers  


Categories