Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

192
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda