xxxxxxxxxx
//The following snippet shows how to do it in a real example:
// Require puppeteer
const puppeteer = require('puppeteer');
(async () => {
// Create an instance of the chrome browser
// But disable headless mode !
const browser = await puppeteer.launch({
headless: false
});
// Create a new page
const page = await browser.newPage();
// Configure the navigation timeout
await page.goto('https://ourcodeworld.com', {
waitUntil: 'load',
// Remove the timeout
timeout: 0
});
// Navigate to some website e.g Our Code World
await page.goto('http://ourcodeworld.com');
// Do your stuff
// ...
})();
xxxxxxxxxx
await page.goto('https://ourcodeworld.com', {
waitUntil: 'load',
// Remove the timeout
timeout: 0
});