cómo identificar que la nueva teb está abierta o no en el titiritero en Mycase SomeTime Form Button haga clic en Event to Some Time Open New teb o someTime SameTeb para redirigir el siguiente formulario
trabajo en el envío de formularios paso a paso (automatizado) en ese formulario de primer paso y luego en el botón Enviar, haga clic en Evento para abrir una nueva Teb en algún momento y en algún momento SameTeb para redirigir el siguiente formulario Entonces, ¿cómo puedo manejar este problema? Teb o no)
Si NewTeb está abierto, entonces hay error y SameTeb abre NextForm, entonces no hay error
Aquí hay un mensaje de error
(node:32521) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read properties of null (reading 'click') at <anonymous>:4:16 at ExecutionContext._evaluateInternal (/home/Documents/project/play/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async ExecutionContext.evaluate (/home/Documents/project/play/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16) at async webScraper.runScript (/home/webcodegenie/Documents/project/play/demoOne.js:244:5) (Use `node --trace-warnings ...` to show where the warning was created) (node:32521) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:32521) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.