[UFT] SelectRow and Exception - 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: [UFT] SelectRow and Exception (/Thread-UFT-SelectRow-and-Exception) |
[UFT] SelectRow and Exception - robertosalemi - 03-23-2016 Hi, I created a new solution for my TC. Usually, with SwfTable, I use SelectRow command, it works always. In this solution, where I write: Code: dgRowCount = SwfWindow("myWin").SwfTable("dataGridViewSelect").RowCount SelectRow returns me an error: 'SelectRow: Exception has been thrown by the target of an invocation." The same error there is if I use ActiveCell o other (only in this TC) What's means? How can I resolve it? Thanks. RE: [UFT] SelectRow and Exception - robertosalemi - 03-23-2016 I thought of something .... The DataGrid object is instantiated in previous STEP that are called to the STEP another TestCase. The problem could be that? Therefore linked to a switch of context? Thank you. |