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

203
Vistas
How to verify search result for having results with only Nonstop flights

My Scenario is writing a script to search flights from Los Angles to Houston George Bush Internationational Air port with filters

  1. Oneway Flight
  2. Nonstop flight

I got search result as in picture

enter image description here

Now I want to verify results that it should be only having Nonstop flights or not

How i could do this?

I'm using Testcafe testing framework

Code that i am writing

Error message i got on console

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

0

Use assertions to check if the tested page’s state matches the expected state.

about 4 years ago · Juan Pablo Isaza Denunciar

0

Could you try the following code snippet in your test:

test('test name', async t =\> {​​​​​​
const elVal = await Selector('#ELEMENTID').value    
console.log(elVal)
}​​​​​​);

I suppose you need to use the Selector Object in your test, since the ClientFunction Object is intended for retrieving serialized data, so you cannot use the result of ClientFunction for working directly with DOM objects.

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