Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

196
Vistas
Can we automate print window( Ctrl+P) using testcafe with JavaScript

I am automating a web application using TestCafe with JavaScript. In the middle of the flow, I get a print window(Ctrl+P) where we get the preview and save and cancel buttons. I need to click on the cancel button. But my TestCafe controller is not switching to the print window. It is still on the web application page only.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

TestCafe does not allow you to automate the Print dialog because TestCafe does not have access to buttons of the Print dialog.

The Print dialog is part of the browser functionality, not the webpage functionality, so we assume that the Print Dialog should be treated as alert, confirm dialogs, and others (https://testcafe.io/documentation/402684/reference/test-api/testcontroller/setnativedialoghandler).

We have an issue to support the Print Dialog in a way similar to the alert dialog: https://github.com/DevExpress/testcafe/issues/2331

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda