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

how to find that tools work well with your existing system?

0 Answers  


How to write business scripts using object repository with different scenarios

0 Answers  


suppose u hav a 10 dialog or window opened on screen with same name & value. now how to test each window? i.e. how qtp indetifies these objects separately?

7 Answers   Wipro,


What is source control?

1 Answers  


How do u write script in qtp? where do u write?

2 Answers  


How you debug your script?

0 Answers  


What is wrong in my code?

3 Answers  


write a script to close all open browser in qtp except one browser whose name is xyz

6 Answers   Cap Gemini,


can u write Script to do Data Driven Testing throuh Externel & internel XL Sheet

2 Answers   Relq,


Howcan you differentiate between Exist statement, Exist property, and Exist method??? How they used???

2 Answers   IBM,


Read excel using qtp descriptive programing

2 Answers   TCS,


Hi All As per the requirements i have to copy the data from word document to excel sheet using the QTP Note : Data in word document is in tabular format i.e there is 80 rows and 5 columns table Can any body provide code for this ? Thanks in advance Regards Test123Test

1 Answers  


Categories