I am using like below to set current row in search results(Web Table)..
To reach to last one in the set of search results, I am using this...
Browser("title:=Search").Page("title:=Search").Web Table("class:=af_table_data-table af_table_data-table-VH-lines","name:=Select").SetCurrentRow( maxrows)
QTP complaining object does not support this property, so not sure on error, please advise.
Thank you in advance.
Yes, that's correct there is no SetCurrentRow method for webtables. Can verify that in the help. That's a datatable method.
What are you trying to do? Just do a .click on the last row?
Yes you do not have this method defined for webtable, but why do u need to set the current row? any requirement
Winds of Change
i have to click on the last row of the results from the table, which has a hyperlink... So how do i identify the row to be clicked ?
try below code
row_count = Browser().page().WebTable().RowCount
i have never seen bugs sleeping