Forum Discussion
akash10
11 years agoOccasional Contributor
Hi,
You can try with the below link
Thanks
Akash Maheshwari
dganov
Staff
11 years agoYou can iterate the grid lines using corresponding script object attached to the DIV element with QvGrid class on the web page:
function test()
{
var grid = Sys.Browser().Page("http://us-b.demo.qlik.com/*").Panel("PageContainer").Panel("MainContainer").Panel(62).Panel(1).Panel(0);
for (var i = 0; i < 10 /* grid.Mgr.Body.Lines.length */; i++)
for (var j = 0; j < grid.Mgr.Body.Lines[i].length; j++)
Log.Message(grid.Mgr.Body.Lines[i][j].val);
}This script posts cell values of the first 10 lines of the grid into the TestComplete log.