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

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

0

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

about 4 years ago · Juan Pablo Isaza Relatório

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 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