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

187
Views
Testcafe is there an easy way to validate your Selector matches certain element when traverse through the DOM tree

I'm writing TestCafe script to test some UI, and I'm wondering if there is an easy way to test this kind of Selectors match:

const element = Selector('div > div').withText('Some text')

The thing is that there might be multiple elements with text "Some text" on the page, and I would like to assure that I'm testing the appropriate one with:

await t.expect(element.exists).ok()

about 4 years ago · Santiago Gelvez
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!