question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timeout of 10000ms exceeded even when timeout is give as 30000

See original GitHub issue

Task for the test:

gulp.task('mds', ['default', 'selenium'], function() {
    return gulp.src('wdio.conf.js')
    .pipe(webdriver({
        waitforTimeout: 30000,
        reporter: 'spec'
    })).on('error', function() {
        seleniumServer.kill();
        process.exit(1);
    });
});

Config file: waitforTimeout: 30000,

At both places I’m giving timeout as 30000, but still the test will timeout at 10000.

[18:28:53] spawn wdio with these attributes:
 /Usxxxers/xxx/xxx/xxxx/xxxxxx/public_html/tests/wdio.conf.js
--waitforTimeout=30000
--reporter=spec

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

43reactions
christian-bromanncommented, Oct 18, 2016

As you can get from the docs the waitforTimeout sets the default timeout for all waitForXXX commands. If you want to increase the test timeout you need to set it in your framework options like in Mocha:

// wdio.conf.js
// ...
mochaOpts: {
    timeout: 99999999
}
// ...
0reactions
christian-bromanncommented, Aug 29, 2018

in your wdio.conf.js as shown in the example

Read more comments on GitHub >

github_iconTop Results From Across the Web

Timeout of 10000ms exceeded even when timeout is give as 30000
Task for the test: gulp.task('mds', ['default', 'selenium'], function() { return gulp.src('wdio.conf.js') .pipe(webdriver({ waitforTimeout: 30000, ...
Read more >
How to solve Puppeteer TimeoutError: Navigation timeout of ...
How to solve Puppeteer TimeoutError: Navigation timeout of 30000 ms exceeded ... (specifically the TimeoutError) after a page takes more than 30000ms (30 ......
Read more >
Cypress verification timed out after 30000 milliseconds
I am using cypress 5.0 in JS project. When I try to run npx cypress open keep getting error verification timed out after...
Read more >
Handling timeout in Axios. Quick and easy - Medium
We set a timeout of 2ms which I know will trigger a timeout on my (average) network. If the request was to succeed,...
Read more >
"Server selection timed out after 30000 ms" error during ...
Is this still an issue? I just registered and I am trying to connect and get the same timeout issue.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found