You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/browser/browser.ts
+57-37Lines changed: 57 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -321,46 +321,14 @@ export class Browser {
321
321
}
322
322
323
323
constisPDF=options.encoding==='pdf';
324
+
324
325
try{
325
-
awaitthis.withTimingMetrics(()=>{
326
+
awaitthis.withTimingMetrics(async()=>{
326
327
if(this.config.verboseLogging){
327
328
this.log.debug('Waiting for dashboard/panel to load','timeout',`${options.timeout}s`);
328
329
}
329
330
330
-
returnpage.waitForFunction(
331
-
(isFullPage)=>{
332
-
/**
333
-
* panelsRendered value is updated every time that a panel renders. It could happen multiple times in a same panel because scrolling. For full page screenshots
334
-
* we can reach panelsRendered >= panelCount condition even if we have panels that are still loading data and their panelsRenderer value is 0, generating
335
-
* a screenshot with loading panels. It's why the condition for full pages is different from a single panel.
336
-
*/
337
-
if(isFullPage){
338
-
/**
339
-
* data-panelId is the total number of the panels in the dashboard. Rows included.
340
-
* panel-content only exists in non-row panels when the data is loaded.
* panelsRendered value is updated every time that a panel renders. It could happen multiple times in a same panel because scrolling. For full page screenshots
576
+
* we can reach panelsRendered >= panelCount condition even if we have panels that are still loading data and their panelsRenderer value is 0, generating
577
+
* a screenshot with loading panels. It's why the condition for full pages is different from a single panel.
578
+
*/
579
+
if(isFullPage){
580
+
/**
581
+
* data-panelId is the total number of the panels in the dashboard. Rows included.
582
+
* panel-content only exists in non-row panels when the data is loaded.
0 commit comments