const browser = await puppeteerExtra.launch({
"dumpio": true, // to log
"headless": false, // to open browser in background process
"devtools": false, // do disable dev-tools
"ignoreHTTPSErrors": true, // to ignore webpage https error
"args": [
"--disable-setuid-sandbox",
'--no-sandbox',
'--disable-features=IsolateOrigins,site-per-process',
],
});
let page = await browser.newPage();
await page.setUserAgent(userAgent.toString());
await page.goto(url, { waitUntil: 'networkidle2' });
await page.waitForTimeout(1000);
await page.setCacheEnabled(false);
await page.evaluate(() => {
let modelSONATA = document.querySelector('input[id="model-SONATA"]');
modelSONATA.click();
});
i Want to Use page.evaluate() inside page.type so Please Help Me What is Way to Use Inside page.type()