![]() |
Tabe in QTP script - 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: Tabe in QTP script (/Thread-Tabe-in-QTP-script) |
Tabe in QTP script - karraaruna - 02-26-2011 Hi I have a requirement in my application to select some random values from the table. but every time when I run the script Iam getting errors. so I used the table select row and column method and tried to retrieve the record but no luck the errors is as follows. Code: JavaWindow("Client System").JavaInternalFrame("GM_2").JavaTable("Table[]_2").SelectCell "14","1" "The statement contains one or more invalid function arguments. line (297): Code: "javaWindow("Client System").JavaInternameFrame("GM_2").javaTable("Tabe[]_2.SelectCell "14","1'"' Thanks RE: Tabe in QTP script - supputuri - 02-28-2011 Hi, Row and column numbers are integers, don't specify them as strings. In the current scenario as you specified column as "1" (string), it's trying to identify the column with name as "1". Try the same LOC with integers. Code: 'Column: The column number or column header label of the column containing the cell you want to select. Column numbers begin with 0. |