unstale

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

@unstale/cli on npm

@wdio/cli 10154 changes

Breaking changes 109

  • The boolean third argument is no longer accepted; pass an options object such as { attachToElement: true } instead.

    10.0.0upgrade guide

  • The Allure reporter method was removed because it had no effect; set environment rows with reportedEnvironmentVars in reporter options.

    10.0.0upgrade guide

  • Appium 3 requires a driver or * scope prefix on --allow-insecure features.

    10.0.0upgrade guide

  • Appium 3 is required, and Appium 1/2 HTTP fallbacks are dropped.

    10.0.0release notesupgrade guide

  • Unprefixed Appium capabilities no longer select an Appium session; use appium:-prefixed capabilities or nest them under appium:options.

    10.0.0upgrade guide

  • @wdio/appium-service declares an optional appium peer of >=3 and refuses to launch an older server.

    10.0.0upgrade guide

  • 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.

    10.0.0upgrade guide

  • 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.

    10.0.0upgrade guide

  • geolocation now uses the browser geolocation stack; pages may require geolocation permission, and positionUnavailable reports an error instead of coordinates.

    10.0.0upgrade guide

  • Setting onLine to false now makes the browsing context offline, including fetch, WebSocket, and WebTransport.

    10.0.0upgrade guide

  • userAgent now uses the browser user-agent override rather than patching navigator.userAgent.

    10.0.0upgrade guide

  • The command is removed. Pass an async function to execute(); its return value, including a promise, is the command result.

    10.0.0upgrade guide

  • Use getInstance() to address a multi-remote session; sessions are no longer stored as properties on the browser or element.

    10.0.0upgrade guide

  • The property is removed, including its value on the worker sessionStarted message.

    10.0.0upgrade guide

  • On a multi-remote browser, mock() returns one MultiRemoteMock whose methods run on every instance.

    10.0.0upgrade guide

  • The JSON Wire Protocol key page load is rejected; use pageLoad instead.

    10.0.0upgrade guide

  • In Classic sessions, pass an element or null; strings and functions are rejected. In BiDi sessions, switchFrame throws.

    10.0.0upgrade guide

  • The command is no longer public; use switchFrame in Classic sessions or held browsing contexts in BiDi sessions.

    10.0.0upgrade guide

  • The command is removed; use browser.throttleNetwork() instead.

    10.0.0upgrade guide

  • The command is removed; use the Actions API with a touch pointer, or mobile commands such as tap and swipe.

    10.0.0upgrade guide

  • The command is removed. Set file inputs with element.setFiles(); Selenium Grid file staging is not part of v10.

    10.0.0upgrade guide

  • RequestedMultiremoteCapabilities is renamed RequestedMultiRemoteCapabilities.

    10.0.0upgrade guide

  • WithRequestedMultiremoteCapabilities is renamed WithRequestedMultiRemoteCapabilities.

    10.0.0upgrade guide

  • Unprefixed capability specs and exclude are dropped; use the prefixed capability configuration instead.

    10.0.0release notes

  • The selector now represents exactly one element and throws StrictSelectorError when it resolves to multiple elements; use $$ for multiple matches or narrow the selector.

    10.0.0upgrade guide

  • It now returns an awaitable ElementArray that is a real array before awaiting; until loaded, length is a promise and synchronous iteration throws.

    10.0.0upgrade guide

  • 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.

    10.0.0upgrade guide

  • The forwarded browser result event payload and AfterCommandArgs no longer include name; read command instead.

    10.0.0upgrade guide

  • The Cucumber framework upgrades @cucumber/cucumber to 13, which may require adapting existing framework usage.

    10.0.0release notes

  • The HTML reporter counts Cucumber scenarios instead of steps and counts only the last try of a retried scenario.

    10.0.0upgrade guide

  • The reporter output follows Cucumber JSON more closely, changing scenario ids, feature ids, keywords, lines, tags, hook and doc-string representations, and statuses.

    10.0.0upgrade guide

  • 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.

    10.0.0upgrade guide

  • A retried scenario now contains only the steps from its last try.

    10.0.0upgrade guide

  • Defaults to true, so a pending step fails the run; set it to false to keep the v9 behavior.

    10.0.0upgrade guide

  • The display server prefers headless Weston and falls back to Xvfb; set displayServer to xvfb to keep using Xvfb.

    10.0.0upgrade guide

  • The default screen size is now 1920x1080; set displayServerWidth and displayServerHeight to preserve baseline dimensions.

    10.0.0upgrade guide

  • The default screen size is now 1920x1080; set displayServerWidth and displayServerHeight to preserve baseline dimensions.

    10.0.0upgrade guide

  • Doc string arguments are now objects containing content and line rather than plain text.

    10.0.0upgrade guide

  • stopRecordingScreen now accepts one options argument instead of four; move individual arguments into an object.

    10.0.0upgrade guide

  • Element references use the W3C WebDriver key and elementId; the JSON Wire Protocol ELEMENT field is no longer part of the element contract.

    10.0.0upgrade guide

  • getValue now calls Get Element Property on every session, including Appium 3; mobile sessions previously used Get Element Attribute.

    10.0.0upgrade guide

  • The plugin requires ESLint 10 and exports only the flat/recommended config; the eslintrc config name is removed.

    10.0.0upgrade guide

  • The reporter no longer installs ffmpeg; install it on each test-running machine or set ffmpegPath or FFMPEG_PATH. Without ffmpeg, it warns and makes no video.

    10.0.0upgrade guide

  • @wdio/browser-runner re-exports fn from @vitest/spy 5; mocks called with new need a function or class implementation, not an arrow function.

    10.0.0upgrade guide

  • 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.

    10.0.0upgrade guide

  • The positional boolean form is no longer accepted; use { includeSelectorTag: false } to exclude the element's own tag.

    10.0.0upgrade guide

  • Deprecated config globals and reporter APIs are removed, so configurations relying on them need updating.

    10.0.0release notes

  • When a worker runs multiple feature files, the reporter now writes one JSON file per feature.

    10.0.0upgrade guide

  • With scenarioLevelReporter enabled, Allure historyId comes from fullTitle, so scenario history starts again when the uid changes.

    10.0.0upgrade guide

  • 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.

    10.0.0upgrade guide

  • Feature ids now retain characters such as colons and slashes; only spaces become hyphens.

    10.0.0upgrade guide

  • Scenario ids now join feature and scenario ids with semicolons, including rule ids for scenarios in a Rule.

    10.0.0upgrade guide

  • The isMultiremote property is renamed isMultiRemote on the browser and element results, and in several runner and reporting APIs.

    10.0.0upgrade guide

  • Remaining JSON Wire Protocol leftovers are dropped; legacy protocol configuration and usage are no longer supported.

    10.0.0release notes

  • Selenium 3, PhantomJS, EdgeHTML, and direct WinAppDriver connections are unsupported; stay on WebdriverIO 9 if those servers are required.

    10.0.0upgrade guide

  • JSONWP Appium capabilities and the mobile getValue fallback are dropped.

    10.0.0release notes

  • Feature and scenario keywords now reflect the keywords in the feature file instead of always being Feature and Scenario.

    10.0.0upgrade guide

  • Launcher#isMultiremote and Launcher#isParallelMultiremote are renamed isMultiRemote and isParallelMultiRemote.

    10.0.0upgrade guide

  • legacy is no longer a Firefox profile service option; a leftover legacy: true is written as a profile preference.

    10.0.0upgrade guide

  • Mobile helpers no longer fall back to removed Appium HTTP endpoints after an unknown-method error; use WebdriverIO mobile commands or execute mobile: directly.

    10.0.0upgrade guide

  • The return type is Uint8Array | null; Node.js still returns a Buffer, while browsers return a Uint8Array.

    10.0.0upgrade guide

  • Using fetchResponse: false with statusCode or responseHeaders filters now throws because those filters require a backend response.

    10.0.0upgrade guide

  • Cucumber JSON reporter metadata now comes from the first instance.

    10.0.0upgrade guide

  • Only commands from the first instance take a video frame in multi-remote sessions.

    10.0.0upgrade guide

  • Only commands from the first instance take a frame in a multi-remote session.

    10.0.0upgrade guide

  • Multiremote naming is aligned to multi-remote / multiRemote, requiring updates to older naming.

    10.0.0release notesupgrade guide

  • In a BiDi session, it returns the new browsing context without switching to it; run commands and close the window through that returned context.

    10.0.0upgrade guide

  • This option is gone because it applied only to WebDriver Classic.

    10.0.0upgrade guide

  • This option is gone because it applied only to WebDriver Classic.

    10.0.0upgrade guide

  • Use this script to generate an HTML report; it replaces the old wdio-html-nice-reporter script path.

    10.0.0upgrade guide

  • The minimum supported Node.js version is 22.19.0.

    10.0.0release notesupgrade guide

  • 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.

    10.0.0upgrade guiderelease notes

  • The boolean third argument is no longer accepted; pass an options object such as { attachToElement: true } instead.

    10.0.0upgrade guide

  • The eslintrc config name is removed; use the flat/recommended config.

    10.0.0upgrade guide

  • Browser downloads use HTTPS_PROXY and HTTP_PROXY only when proxy-agent is installed or Node.js runs with NODE_USE_ENV_PROXY=1.

    10.0.0upgrade guide

  • 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.

    10.0.0upgrade guide

  • webdriverio accepts puppeteer-core >=24 <26, including Puppeteer 25.

    10.0.0upgrade guide

  • GET commands no longer produce a frame unless this option is enabled.

    10.0.0upgrade guide

  • Use html as the reporter name in reporters instead of html-nice.

    10.0.0upgrade guide

  • The exported error type JSONWPCommandError is now named SessionRequestError.

    10.0.0upgrade guide

  • Custom framework adapters can no longer pass a Map of matchers; iterate with Object.entries(wdioMatchers).

    10.0.0upgrade guide

  • The option uses the last part of W3C WebDriver endpoints; old JSON Wire Protocol names do not match v10 commands.

    10.0.0upgrade guide

  • Only the options object form is accepted; the removed Appium endpoint fields appWaitPackage, appWaitActivity, and optionalIntentArguments are gone and passing them throws.

    10.0.0upgrade guide

  • Skipped and pending hooks now have their corresponding Cucumber JSON statuses instead of being reported as passed.

    10.0.0upgrade guide

  • Undefined steps now have status undefined rather than failed or pending.

    10.0.0upgrade guide

  • It throws in a BiDi session; remove calls that switched back to the first tab after newWindow().

    10.0.0upgrade guide

  • Tags now use the Cucumber JSON shape { name, line }; scenario tags receive the feature-file line instead of internal Cucumber object fields.

    10.0.0upgrade guide

  • A Cucumber feature uid now includes its path from rootDir, distinguishing same-named feature files; scenario parent and fullTitle use that uid.

    10.0.0upgrade guide

  • Browser downloads use the system unzip command on Linux and macOS, so slim images without it need to install it.

    10.0.0upgrade guide

  • Video file dates now use YYYY-MM-DD--HH-MM-SS-mmm on every machine instead of the machine locale.

    10.0.0upgrade guide

  • Command results use value and W3C errors; numeric status fields are ignored, including the old no-such-element status code.

    10.0.0upgrade guide

  • Session creation now requires the W3C response body with sessionId and capabilities under value; JSON Wire Protocol response bodies are rejected.

    10.0.0upgrade guide

  • The reporter moved into the WebdriverIO repository; replace the community package and its imports with this package. The cucumberjs-json reporter name remains unchanged.

    10.0.0upgrade guide

  • 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.

    10.0.0upgrade guide

  • @wdio/xvfb is replaced by @wdio/display-server, which starts one display server for the run before service onPrepare hooks.

    10.0.0upgrade guide

  • The environment variable is removed; $$() always returns the multi-remote element array.

    10.0.0upgrade guide

  • The environment variable is removed; select() is always available.

    10.0.0upgrade guide

  • The HTML reporter moved into the WebdriverIO repository under this package; replace wdio-html-nice-reporter, which is for v9 only.

    10.0.0upgrade guide

  • The repl now emits prefixed Appium capability keys, including appium:app, appium:platformVersion, and appium:udid.

    10.0.0upgrade guide

  • The reporter moved into the WebdriverIO repository; replace the community package and imports with this package. The video reporter name and options mostly remain the same.

    10.0.0upgrade guide

  • 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.

    10.0.0upgrade guide

  • This setting no longer marks a Selenium standalone session.

    10.0.0upgrade guide

  • The legacy ELEMENT field is no longer declared; read element.elementId instead.

    10.0.0upgrade guide

  • The MultiremoteConfig type is renamed MultiRemoteConfig; the old name is not aliased.

    10.0.0upgrade guide

  • Multi-remote $$() and related list methods return MultiRemoteElementArray; its iteration and search methods are async and return promises.

    10.0.0upgrade guide

  • xvfbAutoInstallCommand is replaced by displayServerAutoInstallCommand; arrays now run without a shell under either option name, so use a string for shell syntax.

    10.0.0upgrade guide

  • xvfbMaxRetries has no effect in v10 and will be removed in v11.

    10.0.0upgrade guide

  • xvfbRetryDelay has no effect in v10 and will be removed in v11.

    10.0.0upgrade guide

  • Display-server auto-install no longer supports yum; install Xvfb yourself on yum-only hosts.

    10.0.0upgrade guide

Deprecations 4

  • autoXvfb is replaced by displayServerEnabled; the old option still works in v10 with a deprecation warning and will be removed in v11.

    10.0.0upgrade guide

  • The option accepts webm (default) and mp4; default now warns and produces webm, so use mp4 for MP4 videos.

    10.0.0upgrade guide

  • xvfbAutoInstall is replaced by displayServerAutoInstall; the old option still works in v10 with a deprecation warning and will be removed in v11.

    10.0.0upgrade guide

  • xvfbAutoInstallMode is replaced by displayServerAutoInstallMode; the old option still works in v10 with a deprecation warning and will be removed in v11.

    10.0.0upgrade guide

New APIs and options 10

  • The CLI now supports filesToWatch globs and the wdio:specs capability.

    10.2.0release notes

  • colorScheme sets the prefers-color-scheme media feature, so CSS media queries follow matchMedia.

    10.0.0upgrade guide

  • New BiDi emulation scopes include media, locale, timezone, touch, orientation, screen, viewportMeta, textLayout, scripting, scrollbar, and forcedColors.

    10.0.0upgrade guide

  • When enabled, tags are omitted from feature and scenario names, ids, and file names.

    10.0.0upgrade guide

  • Set disableMochaHooks to true to hide passed Cucumber BeforeAll and AfterAll fixtures in Allure.

    10.0.0upgrade guide

  • Use setFiles() to set file inputs; it requires a BiDi session and paths are opened by the browser.

    10.0.0upgrade guide

  • Scenario and step JSON objects now include a line.

    10.0.0upgrade guide

  • Mock responses accept Uint8Array and ArrayBuffer payloads.

    10.0.0upgrade guide

  • Use this Allure reporter option to set environment rows.

    10.0.0upgrade guide

  • Pass { strict: false } to opt out of strict matching for a single query.

    10.0.0upgrade guide

Performance 1

  • Testrunner hot paths were optimized, with gains measured in the mock benchmark.

    10.0.0release notes

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.

    10.0.0upgrade guide

  • create-wdio installs appium@^3 when Appium is missing or older than 3.

    10.0.0upgrade guide

  • Passing isW3C to attach is ignored.

    10.0.0upgrade guide

  • On BiDi sessions, back traverses history on the top-level context and waits according to pageLoadStrategy and the session page-load timeout.

    10.0.0upgrade guide

  • Emulation now uses the WebDriver BiDi emulation module instead of injected preload scripts; reloads are no longer required for BiDi scopes.

    10.0.0upgrade guide

  • The device scope sets user agent, viewport, touch, mobile text layout, and viewport meta from the descriptor, but does not change screen or orientation.

    10.0.0upgrade guide

  • On BiDi sessions, forward traverses history on the top-level context and waits according to pageLoadStrategy and the session page-load timeout.

    10.0.0upgrade guide

  • npm create wdio@latest writes es2024 as the generated TypeScript library setting.

    10.0.0upgrade guide

  • For CommonJS projects, create-wdio generates NodeNext as the module setting to match its generated module resolution.

    10.0.0upgrade guide

  • create-wdio generates bundler resolution for ESM projects and NodeNext resolution for CommonJS projects to accommodate TypeScript 6.

    10.0.0upgrade guide

  • npm create wdio@latest writes es2024 as the generated TypeScript target.

    10.0.0upgrade guide

  • Generated TypeScript configuration lists the type packages tests use, since TypeScript 6 defaults types to an empty list.

    10.0.0upgrade guide

  • Step keywords follow the feature file language header, then cucumberOpts.language; the reporter language option is used only if cucumberOpts.language is unset.

    10.0.0upgrade guide

  • It has the same pre-await element-list behavior as $$, returning an awaitable real array.

    10.0.0upgrade guide

  • Hooks are represented as steps with hidden: true and no name.

    10.0.0upgrade guide

  • An out-of-range nonnegative index is an element that waits for that list position, not undefined; compare the index with length instead.

    10.0.0upgrade guide

  • React selectors support React 16–19, wait up to five seconds for a root, and search roots and scopes with updated matching behavior.

    10.0.0upgrade guide

  • The Cucumber JSON reporter writes no file and logs a warning when scenarioLevelReporter is enabled, because the format needs steps.

    10.0.0upgrade guide

  • The command accepts the same emulation scopes and no longer advises reloading for overrides that apply immediately.

    10.0.0upgrade guide

  • In BiDi sessions, the reporter captures frames after url, back, forward, refresh, and actions; commands wait for the previous command's frame.

    10.0.0upgrade guide

  • The reporter captures frames for url, back, forward, refresh, and actions, using BiDi and waiting for each command's frame so it shows that command's page.

    10.0.0upgrade guide

Tooling 2

  • WebdriverIO introduces Vitest support with parallel runs and fixtures.

    10.2.0release notes

  • The recommended config uses this type-aware rule instead of wdio/await-expect when typescript-eslint is installed.

    10.0.0upgrade guide

Fixes and other changes 7

  • The CLI rejects --repeat.

    10.2.0release notes

  • The CLI rejects a shard value of 0/N instead of accepting it.

    10.2.0release notes

  • Spec file URLs remain intact in the run summary.

    10.1.0release notes

  • A test without a video no longer gets an empty video attachment when using the Allure reporter.

    10.0.0upgrade guide

  • Cucumber BeforeAll and AfterAll hooks are reported as feature hooks, and their browser commands and console logs belong to the hook.

    10.0.0upgrade guide

  • In TypeScript, the result is WebdriverIO.BrowsingContext | { handle, type } because Classic returns a window handle; narrow the result in BiDi sessions.

    10.0.0upgrade guide

  • Ambiguous steps now have status ambiguous, and error_message lists matching step definitions.

    10.0.0upgrade guide

@wdio/cli 930 changes

Breaking changes 4

  • autoCompileOpts was removed as the toolchain replaces ts-node with tsx.

    9.0.0release notes

  • Capability type definitions were improved, which may require updating TypeScript capability declarations.

    9.0.0release notes

  • Node.js 16 is no longer supported.

    9.0.0release notes

  • The TypeScript execution tool was changed from ts-node to tsx.

    9.0.0release notes

New APIs and options 3

  • Supports using CHROMEDRIVER_CDNURL to configure custom ChromeDriver mirrors.

    9.31.9release notes

  • BrowserStack service adds one-to-many Test-Case-ID tagging.

    9.29.1release notes

  • Allows --exclude to exclude suites by name.

    9.23.1release notes

Performance 1

  • Improves selector performance in the Appium service.

    9.24.0release notes

Tooling 1

Fixes and other changes 21

  • Signal-terminated workers now cause the CLI to report a non-zero exit code.

    9.32.0release notes

  • Fixes EdgeDriver upgrade accounting when the browser version is missing a corresponding driver architecture.

    9.31.9release notes

  • Restores nested and Shadow DOM scrolling in scrollIntoView.

    9.31.8release notes

  • The WebDriver Bidi response timeout is configurable, allowing developers to adjust the timeout.

    9.30.1release notes

  • BrowserStack routes App Automate sessions from the WDIO CLI flow to app-accessibility.

    9.30.0release notes

  • BrowserStack service skips accessibility scans for BiDi window and context commands.

    9.30.0release notes

  • BrowserStack service finalizes orphaned test runs when the process exits interrupted.

    9.30.0release notes

  • BrowserStack service now reports Mocha hooks in the CLI/testhub flow.

    9.30.0release notes

  • BiDi skips the isConnected check for non-shadow element scopes.

    9.29.1release notes

  • Fixes the logger’s CommonJS compliance, improving compatibility for developers using it from CommonJS code.

    9.28.0release notes

  • Fixes mobile command argument mismatches for Appium 3 compatibility.

    9.26.1release notes

  • Log file prefixes now include the spec file name.

    9.23.3release notes

  • Fixes handling of dynamic specs added in onPrepare.

    9.23.1release notes

  • Allows specFileRetries to be overridden in the beforeSession hook.

    9.23.1release notes

  • Fixes which files are watched by the watcher.

    9.23.1release notes

  • Fixes an issue that caused the CLI to load the config file twice.

    9.22.0release notes

  • Corrects the parallel multiremote check when capabilities are empty.

    9.22.0release notes

  • Fixes an issue with the timing of TSX file loading in the CLI.

    9.22.0release notes

  • The CLI now respects maxInstancesPerCapability for dynamic capabilities.

    9.21.0release notes

  • The tsConfigPath setting in wdio.conf was reverted.

    9.20.1release notes

  • Fixed wdio repl when run with multiremote capabilities.

    9.20.1release notes