-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify_feature.js
More file actions
18 lines (13 loc) · 694 Bytes
/
Copy pathverify_feature.js
File metadata and controls
18 lines (13 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
// Navigate to the local server
await page.goto('http://127.0.0.1:8000/index.html', { waitUntil: 'networkidle' });
// Ensure we scrolled to the GAPbot 3D container to trigger any lazy loading or intersection observer
await page.locator('#gapbot-3d-container').scrollIntoViewIfNeeded();
// Take a full page screenshot
await page.screenshot({ path: '/home/jules/verification/verification.png', fullPage: true });
await browser.close();
console.log('Verification screenshot saved to /home/jules/verification/verification.png');
})();