Strange Behaviour of SwfTable - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Strange Behaviour of SwfTable (/Thread-Strange-Behaviour-of-SwfTable) |
Strange Behaviour of SwfTable - robertosalemi - 12-23-2015 Hi to all, in past days, I did automated test on a SwtTable. For this object I used standard funciont as RowCount, ColumnCount, ActivateCell or GetCellData. Today all these functions not work. I had to replace: Code: rowCount = SwfWindow("myApp").SwfTable(dataGridView).RowCount with Code: rowCount = SwfWindow("myApp").SwfTable(dataGridView).GetROProperty("RowCount") Code: clmnCount = SwfWindow("myApp").SwfTable(dataGridView).ColumnCount with Code: clmnCount = SwfWindow("myApp").SwfTable(dataGridView).GetROProperty("ColumnCount") Code: str = SwfWindow("myApp").SwfTable(dataGridView).GetCellData(r, c) with Code: str = SwfWindow("myApp").SwfTable(dataGridView).Object.Rows.Item(Cint(row)).Cells.Item(c).Value Why? With Spy Object, the Object is equals, it not changed. Thanks. RE: Strange Behaviour of SwfTable - robertosalemi - 12-28-2015 The problem is still present. This is my object with Spy Object. [attachment=1396] And this my code SwfTable("dataGridView1").SelectRow® The code returns me "Unexpected error", why? SelectRow is an operation of this object. Must I review all my automated test cases? Thanks RE: Strange Behaviour of SwfTable - robertosalemi - 12-29-2015 Temporarily, I found this solution: Code: SwfWindow("muApp").SwfTable("dataGridView1").Object.Rows.Item(r).Selected = True But, while SelectRow shows to user the select row in DataGrid with the automatic scrolling of the same, the above code does not perform automatic scrolling. Thanks. |