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

231
Views
Webdriverio: How to stop execution on a failed step cucumber page object model

I am implementing cucumber page object model with webdriverio. I need to stop the execution when a step fails.

Feature:
Given user login with <username> and <password>--- first page
And user selects configuration ---second page
And user perform some action--- third page

When I give invalid credentials code is not exiting immediately instead it's waiting to execute the next steps. I am getting the below error

Error: function timed out, ensure the promise resolves within 120000 milliseconds at Timeout. (C:\DEV\ftm_webdriverio\node_modules@cucumber\cucumber\lib\time.js:60:20) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)

I need to exit the code instead of waiting for the steps to execute. Appreciate any insights. Thanks

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!