Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

200
Views
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 answers
Answer question

0

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

about 4 years ago · Juan Pablo Isaza Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!