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

128
Vistas
console.log does not print to the console when written in a test case in the Nightwatch using Javascript
const arr= ['A', 'B']

module.exports = {

'testCase1'(browser){
  console.log("Hello")   //Doesn't print to the console
  },


'testCase2'(browser){
  arr.forEach(myFunction);

  function myFunction(value){
        browser
            .useXpath().click(`//span[text() = "${value}"]`)
            //rest of the code
    }
  }

}

I am using Nightwatch for automation.

Que 1- In testCase 1, why Hello is not printed to the console when I write in the test case?

Que 2- In testcase2, It does nothing, what can be the reason?

about 4 years ago · Juan Pablo Isaza
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