We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab6f7b2 commit 4ccaf4eCopy full SHA for 4ccaf4e
1 file changed
index.js
@@ -9,8 +9,17 @@ puppeteer.use(StealthPlugin());
9
const URL = 'https://apkpure.com/android-device-policy/com.google.android.apps.work.clouddpc/versions';
10
11
(async () => {
12
+ console.log('Launching browser...');
13
const browser = await puppeteer.launch({headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox']});
- const page = await browser.newPage();
14
+ console.log('Browser launched');
15
+
16
+ try {
17
+ const page = await browser.newPage();
18
+ await page.goto(URL, { waitUntil: 'domcontentloaded' });
19
+ console.log('Page loaded');
20
+ } catch (e) {
21
+ console.error('Page load failed:', e);
22
+ }
23
24
await page.goto(URL, {waitUntil: 'networkidle2'}); // more aggressive wait
25
0 commit comments