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

113
Views
WDIO - Maximum call stack size exceeded in SauceLab but not in Local Runs

I have automated UI tests (WDIO) that tests whether a form saves and displays the correct data.

All my tests pass when I run it locally, but when I try running it in SauceLab I get this error for some, not all of my tests

RangeError: Maximum call stack size exceeded

I have waitUntil checks to make sure the page is loaded before I navigate to the next page. To navigate to the next page, I click on a dropdown and then the page name, which I also checked it exists and is clickable before clicking it.

 await browser.waitUntil(async () =>
      (await title).waitForExist({
        timeout: 30000,
        timeoutMsg: `Couldn't find title`,
      })
    );

// Wait to click button to show dropdown
(await this.pageButton).waitForClickable(); 
await this.pageButton.click();

// In dropdown, find the page name we want to click
 await pageNameElement.waitForClickable(); 
 await pageNameElement.click();

Does anyone how to fix this?

It works in local runs, but not in SauceLabs and I don't notice any codes going in a loop calling each other. I don't think it's a problem with Saucelab setup since some of the tests pass

Any help? Thank you

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!