I think I understand your question now.
You cannot identify the UniqueID div
as a WebTable
since it's a WebElement
in QTP not a table, however you can use the div
in order to uniquely identify the table
since it's the only child object of the div
. Something like this should work:
Browser("B").Page("P").WebElement("html id:=UniqueID").WebTable("html tag:=TABLE").RowCount()