Skip to content

Get Visuals

submarine-launched edited this page Mar 8, 2020 · 6 revisions

To get a list of visuals in a specific page, use the getVisuals async method on Page object.

page.getVisuals().then(function(visuals) {
  ...
});

Example: get a list of visuals on the first page:

report.getPages()
  .then(function (pages) {
    // Retrieve first page.
    var firstPage = pages[0];
 
    firstPage.getVisuals()
      .then(function (visuals) {
        console.log(visuals);
      })
  })