(node:18517) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'innerText' of null at <anonymous>:1:102 at ExecutionContext.evaluateHandle (/root/node_modules/puppeteer/lib/ExecutionContext.js:88:13) at process._tickCallback (internal/process/next_tick.js:68:7)
const availability = await page.evaluate(() => { const availabilityText = document.querySelector('.errorClass .errorClass') return availabilityText ? availabilityText.innerText : "error"; });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)