npm / @wdio/cli
@wdio/cli
What changed in @wdio/cli 9 to 10, from its official release notes, upgrade guides and advisories. Also covers @wdio/appium-service, @wdio/browser-runner, @wdio/local-runner, @wdio/mocha-framework. Sources checked 2026-11-30.
113 breaking4 deprecations13 new APIs and options2 performance21 behavior and defaults3 tooling28 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@wdio/cli 10154 changes
Breaking changes 109
The boolean third argument is no longer accepted; pass an options object such as
{ attachToElement: true }instead.The Allure reporter method was removed because it had no effect; set environment rows with
reportedEnvironmentVarsin reporter options.Appium 3 requires a driver or * scope prefix on --allow-insecure features.
Appium 3 is required, and Appium 1/2 HTTP fallbacks are dropped.
Unprefixed Appium capabilities no longer select an Appium session; use appium:-prefixed capabilities or nest them under appium:options.
@wdio/appium-service declares an optional appium peer of >=3 and refuses to launch an older server.
WebdriverIO no longer exposes client methods for most deprecated Appium base-driver routes, including appiumLock; use W3C Actions, a mobile command, or a driver mobile: execute method instead.
For element commands, the hook runs once with the command arguments before WebdriverIO waits for the element; commands nested inside other commands still have their own hook pair.
geolocation now uses the browser geolocation stack; pages may require geolocation permission, and positionUnavailable reports an error instead of coordinates.
Setting onLine to false now makes the browsing context offline, including fetch, WebSocket, and WebTransport.
userAgent now uses the browser user-agent override rather than patching navigator.userAgent.
The command is removed. Pass an async function to execute(); its return value, including a promise, is the command result.
Use getInstance() to address a multi-remote session; sessions are no longer stored as properties on the browser or element.
The property is removed, including its value on the worker sessionStarted message.
On a multi-remote browser, mock() returns one MultiRemoteMock whose methods run on every instance.
The JSON Wire Protocol key page load is rejected; use pageLoad instead.
In Classic sessions, pass an element or null; strings and functions are rejected. In BiDi sessions, switchFrame throws.
The command is no longer public; use switchFrame in Classic sessions or held browsing contexts in BiDi sessions.
The command is removed; use browser.throttleNetwork() instead.
The command is removed; use the Actions API with a touch pointer, or mobile commands such as tap and swipe.
The command is removed. Set file inputs with element.setFiles(); Selenium Grid file staging is not part of v10.
RequestedMultiremoteCapabilities is renamed RequestedMultiRemoteCapabilities.
WithRequestedMultiremoteCapabilities is renamed WithRequestedMultiRemoteCapabilities.
Unprefixed capability specs and exclude are dropped; use the prefixed capability configuration instead.
The selector now represents exactly one element and throws
StrictSelectorErrorwhen it resolves to multiple elements; use$$for multiple matches or narrow the selector.It now returns an awaitable
ElementArraythat is a real array before awaiting; until loaded,lengthis a promise and synchronous iteration throws.On Windows, WebdriverIO no longer adds a profile folder; ChromeDriver creates a temporary profile for each session. Set your own --user-data-dir to keep a profile.
The forwarded browser result event payload and
AfterCommandArgsno longer includename; readcommandinstead.The Cucumber framework upgrades @cucumber/cucumber to 13, which may require adapting existing framework usage.
The HTML reporter counts Cucumber scenarios instead of steps and counts only the last try of a retried scenario.
The reporter output follows Cucumber JSON more closely, changing scenario ids, feature ids, keywords, lines, tags, hook and doc-string representations, and statuses.
Profile or configuration-file values are used, with cucumberOpts values taking precedence; profile require and import lists are loaded too, while paths, requireModule, and loader are not used.
A retried scenario now contains only the steps from its last try.
Defaults to true, so a pending step fails the run; set it to false to keep the v9 behavior.
The display server prefers headless Weston and falls back to Xvfb; set displayServer to xvfb to keep using Xvfb.
The default screen size is now 1920x1080; set displayServerWidth and displayServerHeight to preserve baseline dimensions.
The default screen size is now 1920x1080; set displayServerWidth and displayServerHeight to preserve baseline dimensions.
Doc string arguments are now objects containing content and line rather than plain text.
stopRecordingScreen now accepts one options argument instead of four; move individual arguments into an object.
Element references use the W3C WebDriver key and elementId; the JSON Wire Protocol ELEMENT field is no longer part of the element contract.
getValue now calls Get Element Property on every session, including Appium 3; mobile sessions previously used Get Element Attribute.
The plugin requires ESLint 10 and exports only the flat/recommended config; the eslintrc config name is removed.
The reporter no longer installs ffmpeg; install it on each test-running machine or set
ffmpegPathorFFMPEG_PATH. Without ffmpeg, it warns and makes no video.@wdio/browser-runner re-exports fn from @vitest/spy 5; mocks called with new need a function or class implementation, not an arrow function.
String and string-array filters are rejected; pass a cookie filter object. One call filters one name, while a call without arguments still returns every visible cookie.
The positional boolean form is no longer accepted; use
{ includeSelectorTag: false }to exclude the element's own tag.Deprecated config globals and reporter APIs are removed, so configurations relying on them need updating.
When a worker runs multiple feature files, the reporter now writes one JSON file per feature.
With scenarioLevelReporter enabled, Allure historyId comes from fullTitle, so scenario history starts again when the uid changes.
Mocha hook titles use the hook description or function name instead of the WebdriverIO wrapper name, affecting skipped-test errors and root-level hook names.
Feature ids now retain characters such as colons and slashes; only spaces become hyphens.
Scenario ids now join feature and scenario ids with semicolons, including rule ids for scenarios in a Rule.
The isMultiremote property is renamed isMultiRemote on the browser and element results, and in several runner and reporting APIs.
Remaining JSON Wire Protocol leftovers are dropped; legacy protocol configuration and usage are no longer supported.
Selenium 3, PhantomJS, EdgeHTML, and direct WinAppDriver connections are unsupported; stay on WebdriverIO 9 if those servers are required.
JSONWP Appium capabilities and the mobile getValue fallback are dropped.
Feature and scenario keywords now reflect the keywords in the feature file instead of always being Feature and Scenario.
Launcher#isMultiremote and Launcher#isParallelMultiremote are renamed isMultiRemote and isParallelMultiRemote.
legacy is no longer a Firefox profile service option; a leftover legacy: true is written as a profile preference.
Mobile helpers no longer fall back to removed Appium HTTP endpoints after an unknown-method error; use WebdriverIO mobile commands or execute mobile: directly.
The return type is Uint8Array | null; Node.js still returns a Buffer, while browsers return a Uint8Array.
Using fetchResponse: false with statusCode or responseHeaders filters now throws because those filters require a backend response.
Cucumber JSON reporter metadata now comes from the first instance.
Only commands from the first instance take a video frame in multi-remote sessions.
Only commands from the first instance take a frame in a multi-remote session.
Multiremote naming is aligned to multi-remote / multiRemote, requiring updates to older naming.
In a BiDi session, it returns the new browsing context without switching to it; run commands and close the window through that returned context.
This option is gone because it applied only to WebDriver Classic.
This option is gone because it applied only to WebDriver Classic.
Use this script to generate an HTML report; it replaces the old wdio-html-nice-reporter script path.
The minimum supported Node.js version is 22.19.0.
WebdriverIO v10 requires Node.js 22.23.4, 24.22.1, or 26.12.1 or later in those release lines; Node.js 18, 20, 23, and 25 are not supported.
The boolean third argument is no longer accepted; pass an options object such as
{ attachToElement: true }instead.The eslintrc config name is removed; use the flat/recommended config.
Browser downloads use HTTPS_PROXY and HTTP_PROXY only when proxy-agent is installed or Node.js runs with NODE_USE_ENV_PROXY=1.
Browser and driver downloads use HTTPS_PROXY and HTTP_PROXY only when proxy-agent is installed in the project or Node.js runs with NODE_USE_ENV_PROXY=1.
webdriverio accepts puppeteer-core >=24 <26, including Puppeteer 25.
GET commands no longer produce a frame unless this option is enabled.
Use html as the reporter name in reporters instead of html-nice.
The exported error type JSONWPCommandError is now named SessionRequestError.
Custom framework adapters can no longer pass a Map of matchers; iterate with Object.entries(wdioMatchers).
The option uses the last part of W3C WebDriver endpoints; old JSON Wire Protocol names do not match v10 commands.
Only the options object form is accepted; the removed Appium endpoint fields
appWaitPackage,appWaitActivity, andoptionalIntentArgumentsare gone and passing them throws.Skipped and pending hooks now have their corresponding Cucumber JSON statuses instead of being reported as passed.
Undefined steps now have status undefined rather than failed or pending.
It throws in a BiDi session; remove calls that switched back to the first tab after
newWindow().Tags now use the Cucumber JSON shape { name, line }; scenario tags receive the feature-file line instead of internal Cucumber object fields.
A Cucumber feature uid now includes its path from rootDir, distinguishing same-named feature files; scenario parent and fullTitle use that uid.
Browser downloads use the system unzip command on Linux and macOS, so slim images without it need to install it.
Video file dates now use
YYYY-MM-DD--HH-MM-SS-mmmon every machine instead of the machine locale.Command results use value and W3C errors; numeric status fields are ignored, including the old no-such-element status code.
Session creation now requires the W3C response body with sessionId and capabilities under value; JSON Wire Protocol response bodies are rejected.
The reporter moved into the WebdriverIO repository; replace the community package and its imports with this package. The
cucumberjs-jsonreporter name remains unchanged.Its JSON output follows the Cucumber JSON format more closely, changing identifiers, keywords, lines, tags, hooks, doc strings, statuses, retries, attachments, language handling, grouped-feature output, and multi-remote metadata.
@wdio/xvfb is replaced by @wdio/display-server, which starts one display server for the run before service onPrepare hooks.
The environment variable is removed; $$() always returns the multi-remote element array.
The environment variable is removed; select() is always available.
The HTML reporter moved into the WebdriverIO repository under this package; replace wdio-html-nice-reporter, which is for v9 only.
The repl now emits prefixed Appium capability keys, including appium:app, appium:platformVersion, and appium:udid.
The reporter moved into the WebdriverIO repository; replace the community package and imports with this package. The
videoreporter name and options mostly remain the same.Every session is W3C WebDriver; JSON Wire Protocol and Mobile JSON Wire Protocol are unsupported, and servers returning their response envelope cannot start a session.
This setting no longer marks a Selenium standalone session.
The legacy ELEMENT field is no longer declared; read element.elementId instead.
The MultiremoteConfig type is renamed MultiRemoteConfig; the old name is not aliased.
Multi-remote $$() and related list methods return MultiRemoteElementArray; its iteration and search methods are async and return promises.
xvfbAutoInstallCommand is replaced by displayServerAutoInstallCommand; arrays now run without a shell under either option name, so use a string for shell syntax.
xvfbMaxRetries has no effect in v10 and will be removed in v11.
xvfbRetryDelay has no effect in v10 and will be removed in v11.
Display-server auto-install no longer supports yum; install Xvfb yourself on yum-only hosts.
Deprecations 4
autoXvfb is replaced by displayServerEnabled; the old option still works in v10 with a deprecation warning and will be removed in v11.
The option accepts
webm(default) andmp4;defaultnow warns and produces webm, so usemp4for MP4 videos.xvfbAutoInstall is replaced by displayServerAutoInstall; the old option still works in v10 with a deprecation warning and will be removed in v11.
xvfbAutoInstallMode is replaced by displayServerAutoInstallMode; the old option still works in v10 with a deprecation warning and will be removed in v11.
New APIs and options 10
The CLI now supports filesToWatch globs and the wdio:specs capability.
colorScheme sets the prefers-color-scheme media feature, so CSS media queries follow matchMedia.
New BiDi emulation scopes include media, locale, timezone, touch, orientation, screen, viewportMeta, textLayout, scripting, scrollbar, and forcedColors.
When enabled, tags are omitted from feature and scenario names, ids, and file names.
Set disableMochaHooks to true to hide passed Cucumber BeforeAll and AfterAll fixtures in Allure.
Use setFiles() to set file inputs; it requires a BiDi session and paths are opened by the browser.
Scenario and step JSON objects now include a line.
Mock responses accept Uint8Array and ArrayBuffer payloads.
Use this Allure reporter option to set environment rows.
Pass
{ strict: false }to opt out of strict matching for a single query.
Performance 1
Testrunner hot paths were optimized, with gains measured in the mock benchmark.
Behavior and default changes 21
For element commands, the hook runs after the wait and any retry, with the result or error of the last try.
create-wdio installs appium@^3 when Appium is missing or older than 3.
Passing isW3C to attach is ignored.
On BiDi sessions, back traverses history on the top-level context and waits according to pageLoadStrategy and the session page-load timeout.
Emulation now uses the WebDriver BiDi emulation module instead of injected preload scripts; reloads are no longer required for BiDi scopes.
The device scope sets user agent, viewport, touch, mobile text layout, and viewport meta from the descriptor, but does not change screen or orientation.
On BiDi sessions, forward traverses history on the top-level context and waits according to pageLoadStrategy and the session page-load timeout.
npm create wdio@latest writes es2024 as the generated TypeScript library setting.
For CommonJS projects, create-wdio generates NodeNext as the module setting to match its generated module resolution.
create-wdio generates bundler resolution for ESM projects and NodeNext resolution for CommonJS projects to accommodate TypeScript 6.
npm create wdio@latest writes es2024 as the generated TypeScript target.
Generated TypeScript configuration lists the type packages tests use, since TypeScript 6 defaults types to an empty list.
Step keywords follow the feature file language header, then cucumberOpts.language; the reporter language option is used only if cucumberOpts.language is unset.
It has the same pre-await element-list behavior as
$$, returning an awaitable real array.Hooks are represented as steps with hidden: true and no name.
An out-of-range nonnegative index is an element that waits for that list position, not
undefined; compare the index withlengthinstead.React selectors support React 16–19, wait up to five seconds for a root, and search roots and scopes with updated matching behavior.
The Cucumber JSON reporter writes no file and logs a warning when scenarioLevelReporter is enabled, because the format needs steps.
The command accepts the same emulation scopes and no longer advises reloading for overrides that apply immediately.
In BiDi sessions, the reporter captures frames after url, back, forward, refresh, and actions; commands wait for the previous command's frame.
The reporter captures frames for
url,back,forward,refresh, andactions, using BiDi and waiting for each command's frame so it shows that command's page.
Tooling 2
WebdriverIO introduces Vitest support with parallel runs and fixtures.
The recommended config uses this type-aware rule instead of wdio/await-expect when typescript-eslint is installed.
Fixes and other changes 7
The CLI rejects --repeat.
The CLI rejects a shard value of 0/N instead of accepting it.
Spec file URLs remain intact in the run summary.
A test without a video no longer gets an empty video attachment when using the Allure reporter.
Cucumber BeforeAll and AfterAll hooks are reported as feature hooks, and their browser commands and console logs belong to the hook.
In TypeScript, the result is
WebdriverIO.BrowsingContext | { handle, type }because Classic returns a window handle; narrow the result in BiDi sessions.Ambiguous steps now have status ambiguous, and error_message lists matching step definitions.
@wdio/cli 930 changes
Breaking changes 4
autoCompileOpts was removed as the toolchain replaces ts-node with tsx.
Capability type definitions were improved, which may require updating TypeScript capability declarations.
Node.js 16 is no longer supported.
The TypeScript execution tool was changed from ts-node to tsx.
New APIs and options 3
Supports using CHROMEDRIVER_CDNURL to configure custom ChromeDriver mirrors.
BrowserStack service adds one-to-many Test-Case-ID tagging.
Allows --exclude to exclude suites by name.
Performance 1
Improves selector performance in the Appium service.
Tooling 1
Added support for CPU and heap profiling.
Fixes and other changes 21
Signal-terminated workers now cause the CLI to report a non-zero exit code.
Fixes EdgeDriver upgrade accounting when the browser version is missing a corresponding driver architecture.
Restores nested and Shadow DOM scrolling in scrollIntoView.
The WebDriver Bidi response timeout is configurable, allowing developers to adjust the timeout.
BrowserStack routes App Automate sessions from the WDIO CLI flow to app-accessibility.
BrowserStack service skips accessibility scans for BiDi window and context commands.
BrowserStack service finalizes orphaned test runs when the process exits interrupted.
BrowserStack service now reports Mocha hooks in the CLI/testhub flow.
BiDi skips the isConnected check for non-shadow element scopes.
Fixes the logger’s CommonJS compliance, improving compatibility for developers using it from CommonJS code.
Fixes mobile command argument mismatches for Appium 3 compatibility.
Log file prefixes now include the spec file name.
Fixes handling of dynamic specs added in onPrepare.
Allows specFileRetries to be overridden in the beforeSession hook.
Fixes which files are watched by the watcher.
Fixes an issue that caused the CLI to load the config file twice.
Corrects the parallel multiremote check when capabilities are empty.
Fixes an issue with the timing of TSX file loading in the CLI.
The CLI now respects maxInstancesPerCapability for dynamic capabilities.
The tsConfigPath setting in wdio.conf was reverted.
Fixed wdio repl when run with multiremote capabilities.