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
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 |
'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 |
datatable.Import("E:\Programming Samples\QTP Samples\OrderNumbers.xls") Asume we have 4 records in datatable Code reads the 4 rows in the sheet ok, but does it 5 times? It doesn't sound like closing the datasheet is the problem Can we close the datasheet runtime ?
How the exception handling can be done using QTP
Plz send one Tracebilitymatrix example? Anybody working on Realtime QTP Plz give contact deatils?
anyone can explain about "Smart Identification" in QTP I mean what is the use of "Smart Identification" Give an example
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
How can you identify the browser and its information using QTP script?
Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?
How can i open 5 multiple browser at once through QTP VB script
WHAT AREV THE STEPS BETWEEN TEST cASE AND Script generation?
What is QTP’s model for test creation?
What is the descriptive programming?