GetCellData not implemented - 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: GetCellData not implemented (/Thread-GetCellData-not-implemented) |
GetCellData not implemented - aranucci - 12-12-2013 Hello there, I am trying to test Avaloq, that is a Banking application whose client is written in .NET, with UFT but when I try to read the content of an Avaloq table I receive this error: The method or operation is not implemented. Line (26): "Set myVal = mySwfTable.GetCellData (2 , 2)". Thanks for a tip Angelo RE: GetCellData not implemented - basanth27 - 12-19-2013 Hello Angelo, You cannot set a value against a method where you are fetching a value. That contradicts the methods operation intention. You can store the value obtained in a variable as such, Code: myVal = mySwfTable.GetCellData (2 , 2) If this works, you may read the below for your General Knowledge. If it throws an error stating the method is not supported you may want to try the below, What is the type of the table object? I am presuming it to be a swftable? Code: SwfTable(...).ActivateCell([RowNumber],"Audit Action") Hope it helps. RE: GetCellData not implemented - aranucci - 01-07-2014 Hello basanth27, thank you for the answer. I tryed to use code as your tip: Code: myVal = mySwfTable.GetCellData (2 , 2) My code is: Code: myVal = SwfWindow("Complete Edition - SOLAIO03").SwfWindow("Recent Orders").SwfTable("AvaloqServer/FORM_SECTION/form").GetCellData(2, 2) but it doesn't work. I receive the error: The method or operation is not implemented. Code: Line (7): "myVal = SwfWindow("Complete Edition - SOLAIO03").SwfWindow("Recent Orders").SwfTable("AvaloqServer/FORM_SECTION/form").GetCellData(2, 2)". I tryed your second tip too but it doesn't work. Your code: Code: SwfTable(...).ActivateCell([RowNumber],"Audit Action") My code: Code: SwfWindow("Complete Edition - SOLAIO03").SwfWindow("Recent Orders").SwfTable("AvaloqServer/FORM_SECTION/form").ActivateCell(2, "Audit Action") I receive a sintax error: Error 14 Cannot use parentheses when calling a Sub Regards RE: GetCellData not implemented - basanth27 - 01-08-2014 My bad. I apologize. It should be, Code: mytext = SwfWindow("Complete Edition - SOLAIO03").SwfWindow("Recent Orders").SwfTable("AvaloqServer/FORM_SECTION/form").GetNAProperty("ActiveCell.Text") There should not be dot after GetNAProperty. Does it work? RE: GetCellData not implemented - aranucci - 01-08-2014 Hi, it doesn't work. I receive this error: Code: Object doesn't support this property or method: 'SwfWindow(...).SwfWindow(...).SwfTable(...).GetNAProperty' If I try with this code: Code: SwfWindow("Complete Edition - SOLAIO03").SwfWindow("Recent Orders").SwfTable("AvaloqServer/FORM_SECTION/form").ActivateCell 2, 2 (it is using GetROProperty) I receve a blank box when I should have a value of 100000034105 as shown in the application window. Ragards |