When I have a Cucumber step definition in JavaScript using WebdriverIO and call:
browser.debug();
...it times out in ten seconds, which is never long enough. Several docs and blog posts advise something like this answer's "Note: The default timeout for the .debug() command is short. Make sure you increase it." But none spell out exactly how to do that.
I've tried things like:
browser.debug({wait: 120000});
...and this, in wdio.conf.js
:
exports.config = merge(configs, {
waitforTimeout: 120000,
connectionRetryTimeout: 90000,
framework: 'cucumber',
cucumberOpts: {
timeout: 60000,
Neither of these (and similar attempts) have extended the debug timeout.
How can I extend the browser.debug
timeout in a Cucumber step definition?