I get the below error when trying to automate Zomato site with puppeteer. I've not been able to find much information about this error online. Can anyone help me in to know about this error?
My code:
const axios = require('axios');
const cheerio = require('cheerio');
const puppeteer = require("puppeteer");
console.log("before");
const link = "https://www.zomato.com/";
(async () => {
try{
const browser = await puppeteer.launch({
headless: false,
slowMo: 250,
args: ["--start-maximized"],
defaultViewport: null,
});
const page = await browser.newPage();
await page.goto(link,{waitUntil: 'domcontentloaded'});
await page.click(".sc-bke1zw-1.bcVYKA>a");
await browser.close();
}
catch(error) {
console.log(error);
}
})();