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

245
Views
While testing a react app with webdriverio, the text "Don't Cancel" in the button of the component is captured as "Dont'T Cancel"

For automated testing a react app, we are using webdriverio. In one such test, there is a text in the button which says "Don't Cancel" wherein we test whether the text in the button is same as what is expected. During this test, webdriverio captures the text as "Don'T Cancel" whereas in the UI it is "Dont't Cancel" which leads to failure of that test case. Tried replacing the single quote with HTML entities like &39; and ' but it doesn't solve the issue. Chrome webdriver is used while testing. Why does this happen and what maybe the solution for this case?

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