npm / webdriverio
webdriverio
What changed in webdriverio 7 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
188 breaking4 security79 new APIs and options3 performance52 behavior and defaults13 tooling221 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initwebdriverio 10335 changes
Breaking changes 164
A Cucumber feature's uid is now derived from its file path.
Cucumber BeforeAll and AfterAll are reported as hooks of the feature.
fill now reports values the browser rejected or reformatted and rejects an empty range value.
A failing afterAll hook now fails the run.
The worker stays alive on a late rejection not reported by a framework, and the run fails.
The CLI now rejects --repeat.
W3C errors are no longer retried.
The package requires Node.js 22.23.4, 24.22.1 or 26.12.1.
The package requires Node.js 22.23.4, 24.22.1 or 26.12.1.
The legacy boolean third argument is removed and throws at runtime; pass an options object such as
{ attachToElement: true }instead.Removed from
@wdio/allure-reporterbecause it had no effect; configure environment rows withreportedEnvironmentVarsinstead.Appium 3 requires a driver or wildcard scope prefix on --allow-insecure features.
With scenarioLevelReporter enabled, historyId comes from fullTitle, so scenario histories restart with the uid change or when rootDir or the feature file path changes.
Appium 3 is required, and Appium 1/2 HTTP fallbacks have been dropped.
Unprefixed automationName, deviceName, and appiumVersion no longer select an Appium session; use appium:-prefixed capabilities or appium:options.
WebdriverIO no longer exposes client methods for most deprecated Appium base-driver routes; use W3C Actions, the corresponding mobile command, or a driver mobile: execute method instead.
Browser and driver downloads use HTTPS_PROXY and HTTP_PROXY only when proxy-agent is installed or Node.js runs with NODE_USE_ENV_PROXY=1; WebdriverIO warns when a set proxy variable would be ignored.
Scripts and built-in scripts pass only the W3C element reference, not the legacy ELEMENT field.
The property has been removed, including its forwarding on the worker sessionStarted message; attach ignores isW3C.
The JSON Wire Protocol key is rejected; use the pageLoad key instead.
The command has been removed; use browser.throttleNetwork() instead.
browser.uploadFile is replaced by element.setFiles.
$ now throws when a selector matches multiple elements.
Now represents exactly one element and throws
StrictSelectorErrorif a selector matches multiple elements; use$$for multiple matches or narrow the selector.WebdriverIO no longer adds a profile folder; ChromeDriver gives each session its own temporary profile. Set your own --user-data-dir to keep a profile.
The browser result event is forwarded to reporters with this event, whose payload no longer has
name; readcommandinstead.Commands use W3C result objects: HTTP 200 without value.error is success, and missing elements use HTTP 404 with value.error set to no such element. Numeric status is ignored.
TypeScript 6 defaults types to an empty list, so projects must list the type packages their tests use.
Session creation requires a W3C response body with value.sessionId and value.capabilities; JSON Wire Protocol bodies are rejected.
A feature uid now includes the feature file path from rootDir, so same-named features in different folders have different uids; scenario parent and fullTitle use that uid.
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.
cucumberOpts.strict defaults to true, so a pending step fails the run; set it to false to keep the v9 behavior.
A retried scenario now has only the steps from its last try in the reporter output.
On a multi-remote browser, custom$ returns one MultiRemoteElement rather than a plain array of elements; use getInstance() to address one browser.
On a multi-remote browser, custom$$ returns one MultiRemoteElementArray rather than a plain array of per-instance lists.
Set displayServer to xvfb to retain Xvfb after renaming old options; otherwise auto mode prefers Weston.
This renamed option replaces xvfbAutoInstallCommand; array commands now run without a shell, so use a string for shell syntax.
Use DisplayServerManager from @wdio/display-server instead of XvfbManager or the xvfb instance from @wdio/xvfb.
Doc string arguments are now objects with
contentandline, rather than plain text.The Element type exported by webdriverio was removed; use the global WebdriverIO namespace.
An index past the end of a
$$(selector)list gives an element that waits for that index, rather thanundefined; compare the index withlength.Use elementId and the W3C element reference key; the legacy ELEMENT field is no longer part of the element contract.
The command has been removed; pass an async function to execute() and return a value or promise instead of using the WebDriver done callback.
Use element.setFiles in place of browser.uploadFile.
Set file inputs using paths opened by the browser; the command requires a BiDi session, and relative paths resolve against process.cwd().
Element queries now return results as an ElementArray.
The command hooks do not run for the
emitevent function.Requires ESLint 10 and exports only the flat/recommended config; the eslintrc config name has been removed.
The executeAsync command has been removed.
Update the peer dependency to expect-webdriverio 8 when upgrading the listed WebdriverIO packages.
The option now defaults to true, so a failing before or beforeEach hook fails the tests that hook skipped.
Feature IDs keep characters such as
:and/; only spaces become hyphens. Long filename feature parts are cut and end with a hash, and Windows device names are prefixed with_.The featureFlags option was removed from expect-webdriverio.
The reporter no longer installs ffmpeg itself; install it on each test-running machine or configure ffmpegPath or FFMPEG_PATH.
filter(), filterSeries() and slice() now return an element list that retains source-list properties instead of a plain array.
The frame command queries, changing its behavior for developers working with frames.
Accepts only an options object for
includeSelectorTag; the positional boolean form is no longer supported.element.getValue() now uses Get Element Property on every session, including mobile sessions, instead of using Get Element Attribute on mobile.
When a worker runs several feature files, the reporter now writes one JSON file for each feature.
Skipped hooks now have status
skipped, and hooks returning'pending'have statuspending, rather than being reported as passed.The isMultiremote property is renamed to isMultiRemote on the browser, element results, runner, launcher, worker messages, and related APIs.
Built-in Jasmine matchers and matchers added with jasmine.addMatchers return undefined again; failed unawaited sync assertions now fail the spec.
The option was removed; configure Jasmine with jasmineOpts instead. Setting the old key throws.
The option is no longer read; use jasmineOpts.stopOnSpecFailure instead.
The option now stops a spec at its first failed assertion, immediately for sync matchers and when awaited async matchers settle.
Use this option in place of jasmineOpts.failFast to stop the suite on spec failure.
The option was removed; use jasmineOpts.oneFailurePerSpec instead. Setting the old key throws.
WebdriverIO no longer speaks JSON Wire Protocol or Mobile JSON Wire Protocol, and servers returning the old response envelope cannot start a session.
WebdriverIO v10 does not support Selenium 3, PhantomJS, EdgeHTML, or direct WinAppDriver connections; stay on v9 if these servers are required.
JSONWP Appium capabilities have been dropped.
Feature and scenario keywords now use the keywords from the feature file, such as
Scenario OutlineorFonctionnalité, rather than fixed English values.Mobile helpers no longer fall back to removed Appium HTTP endpoints after an unknown-method error; the error advises upgrading to Appium 3.
The mobile getValue fallback has been removed.
Hook titles use the hook description or function name instead of the WebdriverIO wrapper name; anonymous hooks have no name.
Mocha's compilers option is gone; load transpilers or setup files with mochaOpts.require instead.
Setting mochaOpts.timeout to 0 now turns the timeout off.
The return type is Uint8Array | null; Node.js still returns a Buffer, while browsers return a Uint8Array.
Accepts Uint8Array and ArrayBuffer payloads. With fetchResponse false, statusCode or responseHeaders filters cause the method to throw.
Accepts Uint8Array and ArrayBuffer payloads. With fetchResponse false, statusCode or responseHeaders filters cause the method to throw.
Sessions are no longer exposed as properties on multi-remote browsers or elements; use getInstance() or select() to address a session.
In a multi-remote session, reporter metadata now comes from the first instance.
Only commands from the first instance now take a frame in a multi-remote session.
Multiremote $$ now returns a MultiRemoteElementArray.
The multiremote mock() command now returns a MultiRemoteMock.
Multiremote select() behavior is stabilized, and its environment flag has been dropped.
Multiremote naming is aligned to multi-remote / multiRemote.
The webdriverio multiremote() API is renamed to multiRemote(); the old spelling is not aliased.
Renames multiremoteBrowser to multiRemoteBrowser to follow camel-casing rules.
The MultiRemoteBrowser type exported by webdriverio was removed; use the global WebdriverIO namespace.
The type has been renamed to MultiRemoteConfig.
MultiRemoteConfig replaces the renamed MultiremoteConfig type.
The MultiRemoteElement type exported by webdriverio was removed; use the global WebdriverIO namespace.
browser.multiremoteFetch() is renamed to browser.multiRemoteFetch().
windowNameandwindowFeaturesare gone because they only applied to WebDriver Classic; the command still acceptstype.WebdriverIO now requires Node.js >=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.
Setting onLine to false now makes the browsing context offline, including fetch, WebSocket, and WebTransport.
The legacy boolean third argument is removed; pass an options object such as
{ attachToElement: true }instead.In afterAssertion, params.result is typed as { pass, message }; read params.result.pass instead of the always-undefined result property.
The eslintrc config name has been removed; use the flat/recommended config.
React 18 and 19 are supported by react$ and react$$ using a built-in resq replacement.
GET commands no longer produce frames because they only read the page, except when this option is enabled.
Configure the HTML reporter with the name html instead of html-nice.
Capabilities.RequestedMultiremoteCapabilities is renamed to Capabilities.RequestedMultiRemoteCapabilities.
Scenario IDs now use semicolon-separated feature, rule, and scenario IDs, matching the Cucumber JSON format.
The non-awaited list selector is now Selector | undefined rather than a promise.
The exported error type JSONWPCommandError is now named SessionRequestError; update imports and references.
setFeatureFlags() was removed from expect-webdriverio.
Custom framework adapters can no longer pass a Map of matchers; iterate with Object.entries(wdioMatchers).
All workers now share one display instead of each having its own; Chrome and Edge pages can lack focus.
The option now uses the last part of W3C WebDriver endpoints; old JSON Wire Protocol names do not match v10 commands.
Ignored legacy options for startActivity have been dropped.
The method now accepts one options object instead of four arguments; move the individual values into that object.
Pass
{ strict: false }to a single$query to opt out of strict selector behavior.In Classic sessions, string and function arguments are rejected; pass an element or null for the top frame. In BiDi sessions, switchFrame throws.
switchToFrame is hidden.
Throws in a BiDi session; remove calls used to switch back to the first tab.
Replace cucumberOpts.tagExpression with cucumberOpts.tags; setting tagExpression now throws.
Tags now use
{ name, line }objects; scenario tags include the feature-file line instead of internal Cucumber objects.WebdriverIO now follows Mocha's timeout set with this.timeout() in a test or hook.
The deprecated throttle command has been removed.
On $$(), expected arrays are compared index by index, so their order must match the page.
The deprecated touchAction command has been removed.
Undefined steps now have status
undefined.The url command returns a context, changing what developers receive when they use it.
The userAgent scope now uses the browser user-agent override rather than patching navigator.userAgent.
Vendor settings must use a prefixed key such as sauce:options, bstack:options, or appium:options; mixed vendor-prefixed and non-W3C keys are rejected.
Video filenames now use the
YYYY-MM-DD--HH-MM-SS-mmmdate format on every machine, rather than the machine locale.webm is now the default; videoFormat: 'default' logs a warning and makes webm videos, so use videoFormat: 'mp4' for MP4.
Every session is now treated as W3C.
A host with only WAYLAND_DISPLAY set now counts as having a display; WebdriverIO starts no Xvfb and opens browser windows on the compositor.
The service declares an optional appium peer dependency of >=3 and refuses to launch an older server.
Re-exports fn, spyOn and mock types from @vitest/spy 5; mocks called with new require a function or class implementation.
Unprefixed capability specs and exclude have been dropped.
The Cucumber JSON reporter moved into the WebdriverIO repository under this package name; replace the v9 community package and update imports.
A retried scenario now includes only the steps from its last try.
Doc string arguments now contain content and line fields instead of being plain text.
When a worker runs several feature files, the reporter now writes one JSON file per feature.
Scenario ids now use semicolon-separated feature, rule, and scenario ids, following the Cucumber JSON format.
Feature and scenario keyword values now match the keywords in the feature file instead of always being Feature and Scenario.
In a multi-remote session, reporter metadata now comes from the first instance.
Skipped and pending hooks now receive their corresponding Cucumber JSON statuses instead of passed.
Undefined steps now have status undefined instead of failed or pending.
Tags now use Cucumber JSON objects with name and line fields; scenario tags receive the feature-file line.
This package replaces @wdio/xvfb; the testrunner starts one display server for the whole run, preferring headless Weston and falling back to Xvfb.
The environment variable has been removed; $$() always returns the multi-remote element array.
Use wdio:exclude in capabilities; bare capability exclude lists are no longer read.
The service no longer treats legacy as an option; a leftover legacy: true is written into the profile as a preference.
The HTML reporter moved into the WebdriverIO repository as @wdio/html-reporter; the old wdio-html-nice-reporter package is for v9 only.
The REPL now emits prefixed Appium capability keys, including appium:app, appium:platformVersion, and appium:udid.
Use wdio:specs in capabilities; bare capability specs lists are no longer read.
The video reporter moved into the WebdriverIO repository under this package name; replace the v9 community package and update imports.
GET commands no longer take frames because they only read the page, except when recordAllActions is enabled.
In multi-remote sessions, only commands from the first instance take a frame.
Video file dates now use YYYY-MM-DD--HH-MM-SS-mmm on every machine rather than the machine locale.
This setting no longer marks a Selenium standalone session; Selenium Grid 4 is still detected from se:cdp.
The internal script has been removed.
The legacy ELEMENT property is no longer declared; use element.elementId.
The selector property now has the Selector type rather than string; check its type before using string-specific methods.
Multi-remote $$() now returns a MultiRemoteElementArray; its collection methods are async and return promises, including after await.
Capabilities.WithRequestedMultiremoteCapabilities is renamed to Capabilities.WithRequestedMultiRemoteCapabilities.
Replace direct XvfbManager or @wdio/xvfb instance usage with DisplayServerManager from @wdio/display-server.
This option has no effect in v10 and will be removed in v11; display startup is no longer retried.
Display-server auto-install no longer supports yum; install Xvfb yourself on yum-only hosts.
Security 1
strictSSL is now applied to HTTP requests in Node.
New APIs and options 39
Reporter support adds units and hook owners for parallel mode, enabling reporters to represent parallel execution.
Snapshot diffing is exposed through the snapshot command's --diff option.
Allure and JUnit runtime APIs are relayed from Vitest workers.
The HTML reporter now supports parallel mode and is included in the main repository.
The CLI now supports the wdio:specs capability.
A bidiConnectTimeout option is added.
Parallel it() execution is available via BiDi browsing contexts.
The snapshot and session packages are prepared for MCP integration.
Repeated controls in snapshots are tagged with their row context.
A proof-of-concept implementation of the snapshot package is introduced.
WebdriverIO now supports the Sauce Labs asia-south-2 data center.
The setup wizard now offers the devtools service, giving users another service option when creating a WebdriverIO project.
browser.act() is added with cached, self-healing steps.
browser.extract() is added with cached, self-healing steps.
Cucumber can run parallel tests in a spec file with parallelMode.
When enabled, tags are omitted from feature and scenario names, IDs, and filenames.
Custom commands can be added to browsing contexts.
Set this option to retain the display height used by existing baselines; the default screen is 1920x1080.
Set this option to retain the display width used by existing baselines; the default screen is 1920x1080.
Chromedriver can be downloaded from Electron releases.
forcedColors is a new browser.emulate scope.
A non-awaited $$() list now exposes the command that found the list, such as $$ or custom$$.
A command to install browser extensions is added.
Scenario and step JSON entries now include a line number.
locale is a new browser.emulate scope.
media is a new browser.emulate scope; it shares a media-feature map with colorScheme, and the later call replaces the whole map.
Mocha can run parallel tests in a spec file with parallelMode.
Native headless Wayland support using weston is added.
orientation is a new browser.emulate scope.
A role/ selector is added for selecting by role and accessible name.
screen is a new browser.emulate scope.
scripting is a new browser.emulate scope.
scrollbar is a new browser.emulate scope.
textLayout is a new browser.emulate scope.
timezone is a new browser.emulate scope.
touch is a new browser.emulate scope.
A command to uninstall browser extensions is added.
viewportMeta is a new browser.emulate scope.
Scenarios and steps now include a line field.
Performance 2
The BiDi Mapper log workaround was removed to avoid slowing BiDi commands.
Hot-path performance improvements make test runs faster.
Behavior and default changes 39
The video reporter records each parallel test in its own video and is included in the main repository.
The default of bidiResponseTimeout is set.
Element list items share their commands.
Element commands run this hook once after the wait and any retry, with the result or error from the last try.
A flat capability object in config remains valid and is wrapped into alwaysMatch before WebdriverIO sends the request.
Element commands run this hook once with the command arguments, before waiting for the element; nested commands still have their own hook pair.
On BiDi, traverses history in the top-level context and waits according to pageLoadStrategy and the page-load timeout; Classic behavior is unchanged.
browser.emulate() is driven by the BiDi emulation module.
On BiDi, traverses history in the top-level context and waits according to pageLoadStrategy and the page-load timeout; Classic behavior is unchanged.
WebdriverIO holds a browsing context for a tab, window, or frame.
colorScheme now sets the prefers-color-scheme media feature, so CSS media queries follow matchMedia.
TypeScript 6 deprecates node; create-wdio generates bundler for ESM and NodeNext for CommonJS projects.
The generator installs appium@^3 when Appium is missing or older than 3.
Cucumber BeforeAll and AfterAll hooks are reported as feature hooks; their browser commands and console logs belong to the hook.
Step keywords follow the feature file's language header, then this option; the reporter's
languageoption is used only when this option is unset.When set to
true, the reporter writes no file and logs a warning because the format needs the steps.The device scope sets user agent, viewport, touch, mobile text layout, and viewport meta from the device descriptor, but does not change screen or orientation.
The geolocation scope uses the browser geolocation stack; a page may still require geolocation permission to be granted.
Multiremote instances are looked up with getInstance.
Hooks are represented as steps with
hidden: trueand noname.For Cucumber, the HTML report counts scenarios rather than steps and counts only the last try of a retried scenario.
Jasmine sync matchers remain synchronous.
Use require to load transpilers or other setup files after Mocha removes compilers.
A non-awaited $$() list now exposes the extra arguments of its command.
webdriverio now accepts puppeteer-core versions >=24 <26, including Puppeteer 25.
Selector matching now honors both props and state, supports null filters and nested fragments, and works on frame contexts and elements.
Works with React 16 to 19 and waits up to five seconds for a root; searches all page roots, including open shadow roots, and reflects current renders.
Works with React 16 to 19, waits for roots, searches all page roots, and returns each DOM node once; results can include more elements when a page has multiple roots.
savePDF prints PDFs using browsingContext.print.
On WebdriverIO values this is the WebdriverIO size matcher; on other values it remains Jasmine's length matcher.
The default is now
webm; the option acceptswebmandmp4. The old valuedefaultwarns and produces webm.With scenarioLevelReporter enabled, the reporter writes no file and logs a warning because the format needs the steps.
When tagsInTitle is enabled, tags are omitted from feature and scenario names, ids, and file names.
Hooks are represented as hidden steps without a name.
The recommended config uses this type-aware rule instead of wdio/await-expect when typescript-eslint is installed.
The command accepts the same emulation scopes as browser.emulate and no longer advises reloading for overrides that apply immediately.
In BiDi sessions, the reporter also takes frames after url, back, forward, refresh, and actions; the next command waits for the preceding command's frame.
In BiDi sessions, the reporter captures frames for
url,back,forward,refresh, andactions; the next command waits for the preceding command's frame so it shows the correct page.When using an existing Wayland display, WebdriverIO sets XDG_SESSION_TYPE to wayland for the run.
Tooling 4
WebdriverIO adds a Vitest framework integration with parallel runs and fixtures.
Vitest integration reports every retry attempt and sends grouped hook events.
The browser channel IPC is typed, giving developers type information when working with browser-runner channels.
The session help output is self-documenting, helping developers understand the command and use it more effectively.
Fixes and other changes 86
Package-less Android resource IDs now emit UiSelector.
Chrome on Android through Appium now works with the default session.
A retried Cucumber step attempt now ends with test:retry.
Step results in parallel mode are now reported as they are in sequential mode.
The CLI now supports globs in filesToWatch.
The CLI now applies --headless to multi-remote capabilities.
Key actions now support non-BMP Unicode characters.
In BiDi sessions, link text selectors now match only links.
A JSON body provided to mock.request() is encoded as UTF-8.
A tab or parallel-test mock can now override a session-wide mock for the same URL.
JSON request bodies are now encoded as UTF-8.
Mock clearing is scoped to the tab or parallel test that calls it.
Mock restoration is scoped to the tab or parallel test that calls it.
A tab or window opened by a parallel test now opens from that test's window.
Quotes in selectByAttribute values are now escaped.
The CLI now rejects a shard count of 0 in --shard 0/N.
The shared store now preserves stored null values.
Keys are now encoded in shared-store request paths.
The uninstallAddOn command now uses POST.
Text selectors now produce valid XPath literals.
Vitest integration rejects --repeat.
The W3C script timeout is now set when an Appium iOS session starts.
Cookie handling follows WebDriver BiDi when wdio:experimentalBiDiCommands is enabled and accepts both sameSite spellings.
Cookie handling follows WebDriver BiDi when experimental BiDi commands are enabled and accepts both sameSite spellings.
Screenshots through WebDriver BiDi now work in parallel mode.
The Appium service was smoothed out.
NODE_OPTIONS is cleared for the Appium version check.
The window handle is used as the BiDi context on Appium web contexts.
Pending BiDi commands are rejected when the connection closes.
Failed tree requests are caught in context event handlers.
Warnings explain when a browser download ignores the proxy and when unzip is missing.
Mocha reports browser errors that happen during tests.
An installed browser is used even when only its archive cleanup fails.
Browsers and Chromedriver are installed atomically, downloading once when processes set them up together.
at() and slice() can be typed on a $$() list before it is awaited.
Clicks give the page its scroll events first, including in Safari on iOS, and scroll elements into view before clicks with options.
Command hooks run once for each element command.
Messages for a custom$ element name its custom strategy.
An index the custom$$ list never reaches gets a not-found element.
Elements can be found inside declarative shadow roots.
Waiting for an element removed by the page waits only once.
ElementArray.at() works in browsers without Array.prototype.at.
Event handler functions are no longer wrapped as commands.
Commands from event listeners are caught when the session ends.
Element arguments passed to execute() in BiDi behave as they do in Classic.
The listed WebdriverIO packages use expect-webdriverio 8.0.0; wdio-session accepts only version 8 as the optional peer.
expect.extend() is typed on the global expect.
Plugins specified as file:// URLs can be imported.
A stale list item whose index is gone is treated as not found, and an index uses the not-found item once the list reaches it.
An index the $$() list never reaches gets a not-found element.
BiDi checks for isDisplayed, isFocused, and isStable find a re-rendered element again.
The WebdriverIO attempt is named in Mocha timeout errors, and timeout handling follows Mocha while allowing it to wait for after hooks.
An index the list never reaches gets its own not-found item per instance.
The script timeout applies to execute in WebDriver BiDi sessions.
Spec file URLs remain intact in the run summary.
A command is run again with the new element id after a stale element.
A device is emulated when Chrome reports that viewport meta is not implemented.
Screenshot events are sent to reporters.
The worker log remains open after deleteSession.
Agents stay on the UI path and fail fast.
Custom strategies, matchers, and argument elements can be found again.
Supports expect.extend() for custom matchers in the Jasmine framework.
Keeps expect-webdriverio's expect types and types expectAsync matchers.
Preserves the strict option and index in hasElementId.
Regenerated BiDi types for the script.EvaluationResult rename.
Fixes device emulation with unsupported BiDi.
Tests without a video no longer receive an empty video attachment.
With the Allure reporter, tests without a video no longer receive an empty video attachment.
Ambiguous steps now have status
ambiguous, anderror_messagelists matching step definitions.BiDi execute now returns Blob and File values.
Accepts URLPattern as the url for browser.mock.
The type now declares then, catch and finally and describes the value before await; use WebdriverIO.ElementArray for the awaited value.
The type now declares then and describes the value before await; use WebdriverIO.Element for the awaited value.
The Xvfb display number is no longer fixed; read it from DISPLAY instead of assuming :99.
Element handling now follows the WebDriver spec for elements from other browsing contexts.
Adds expect.multiRemote() to the Jasmine expect.
expect.oneOf() now works in Jasmine specs.
Commands are routed to their held browsing context, so they act on the intended context.
mock.waitForResponse() works with Firefox 304 responses and in every session.
In multiremote, nextElement, previousElement, and parentElement return a MultiRemoteElement.
In multiremote, custom$, react$, and shadow$ return a MultiRemoteElement.
In multiremote, custom$$, react$$, and shadow$$ return a MultiRemoteElementArray.
Multiremote $$ items now work for missing and late elements.
Feature ids retain characters such as colons and slashes; only spaces become hyphens.
Ambiguous steps now have status ambiguous, and error_message lists matching step definitions.
Scripts returning NodeList or HTMLCollection now produce element references, allowing execute and custom locator strategies to work with those results as elements.
webdriverio 9194 changes
Breaking changes 12
Event handler functions are no longer wrapped as commands.
MultiRemote getInstance now throws instead of returning undefined.
WebdriverIO now requires Node.js releases that include the eMudhra CA fix.
Classic cookie filtering now requires all filter attributes.
Removes the mobile command wrapper.
Deprecated Appium protocol commands were renamed for Appium 3 compatibility.
autoCompileOpts was removed as ts-node was replaced with tsx.
Capability type definitions changed; developers may need to update capability declarations.
WebdriverIO migrated from got to fetch, which may affect developers relying on the previous HTTP client behavior.
JSONWireProtocol was removed.
Support for Node.js 16 was dropped.
WebdriverIO automatically opts into WebDriver Bidi.
Security 3
Its preload script is guarded against partial-Bidi remotes.
Redacts the username accesskey from automation logs.
A fix addresses credentials leaking in logs.
New APIs and options 29
Adds isMultiRemote alongside the deprecated isMultiremote.
Upgrades to expect-wdio 7 for Multi-remote Assertion Support.
Adds support for accepting mobile permission dialogs.
Adds support for CPU and heap profiling.
Adds the Dioxus service to the project creation wizard.
Adds support for dismissing mobile permission dialogs.
Supports CHROMEDRIVER_CDNURL for custom ChromeDriver mirrors.
create-wdio adds third party service null-driver support.
Adds beta ElementArray support under a feature flag for multiRemote.$$(), including MultiRemoteElement[].
Multi-remote instance and element support is enhanced with filter.
The Allure reporter adds a title path.
Expect adds support for multi-element $$() queries.
The WebDriver Bidi response timeout is configurable.
BrowserStack service ships its accessibility Browser type augmentations.
Adds one-to-many Test-Case-ID tagging in the BrowserStack service.
create-wdio adds a Tauri service.
Adds BiDi network data support.
The option can now exclude test suites by name.
The Appium service can start Appium Inspector from the CLI.
A custom timeout can now be passed when starting Appium.
The BrowserStack service implements BrowserStack CLI support.
The Allure reporter adds mode and excluded properties for parameters.
Component tests can use a custom hostname.
Deep shadow root piercing was added.
A dialog handler was added.
WebdriverIO added support for fake timers.
Using preload scripts was made easier.
A new command lets developers set the viewport.
The url command gained new features.
Performance 1
Improves selector performance in the Appium service.
Behavior and default changes 9
Select moved into beta and still requires an environment flag.
The unstable Multi-remote select implementations were reviewed and the filter was removed.
Multi-remote instance and element support is enhanced with select.
WDIO CLI-flow App Automate sessions are routed to app-accessibility.
BrowserStack skips accessibility scans for BiDi window/context commands.
Allure reporter attaches suite-level before/after all hook steps to every test.
The gRPC message limit in WDIO-v9 is updated to 20 MB.
Adds the spec file name to the log file prefix.
Enhanced getContext, getContexts, and switchContext APIs.
Tooling 6
The create-wdio wizard now offers the devtools service.
The CLI REPL now supports TypeScript files.
BrowserStack reports Mocha hooks in the CLI/testhub flow.
create-wdio migrates its Electron setup to @wdio/electron-service.
The plugin follows the ESLint v9 plugin specification.
Uses a no-floating-promise ESLint rule to catch missing await statements.
Fixes and other changes 134
In-flight commands continue to be aborted after the first command completes.
Browsers and drivers are unzipped with an OS tool on Node 26.
Browser installation retries clean up correctly.
Custom Vite and Stencil config files are imported via file URLs.
Concurrent setups now share a driver installation.
The local runner preserves --enable-source-maps and deduplicates worker NODE_OPTIONS.
The Allure reporter now carries the hook error and a historyId on failed hooks.
Mock responses now respect fetchResponse.
Mock responses no longer get blocked in Firefox.
An intercepted request is released once per phase.
Multiremote mockRestoreAll restores only mocks owned by the instance.
The CLI now loads tsx on Node.js 18.
The browser runner polyfills path and __dirname in pre-bundled dependencies.
Short strings are no longer logged as screenshots.
Elements in nested scroll containers use native scrollIntoView.
Works correctly on multi-remote browsers.
Uses the BiDi accessibility locator for aria selectors.
Enables followRedirects for BiDi connections.
Honors exclusion options when retrieving HTML.
Adds undefined as a possible return type.
Resolves a mock state error and race condition.
Handles dynamic function payloads in mock responses.
Uses the correct navigation ID when waiting for network idle.
Reports a non-zero exit code for workers terminated by a signal.
Re-throws the original stale-element error when refetching fails.
Keeps a valid top-level context and can recover a destroyed context when switching to the parent frame.
Applies network throttling conditions to service workers.
Fixes EdgeDriver upgrades when the browser version is missing the corresponding driver architecture.
Restores nested and Shadow DOM scrolling in scrollIntoView.
Tracks the lifecycle of dialog listeners.
Applies keyword exclude to grouped specs.
Clears shadow roots when navigation starts.
Rejects invalid timeout values.
Retries after a failed sync.
BiDi no such node errors are handled as stale errors.
Tracks the document element separately per context.
Correctly serializes IPv6 BiDi WebSocket candidates.
Typing for expect-wdio/api was fixed.
Spec files are retried when session creation fails.
The .cts file extension is added to the supported extensions for configuration files.
Matching mock responses are now recorded even when they are not blocked.
The create-wdio setup installs @serenity-js/html-reporter instead of @senity-js/serenity-bdd.
Requests aborted by connectionRetryTimeout are now retried.
The current context is reset when its browsing context is destroyed.
Element command overrides are now composed.
The wheel action now scrolls by deltaX and deltaY.
An undefined element that passes a filter is now kept.
Driver setup now respects WEBDRIVER_CACHE_DIR.
Guards the Object.keys call when the request body is stringified.
With Cucumber Opts.scenarioLevelReporter, scenarios are reported as testcases.
BrowserStack accessibility options supplied as stringified booleans are coerced.
BrowserStack finalizes orphaned test runs when the process exits interrupted.
Scoped element lookups no longer include unrelated shadow roots.
The CDDL was updated and regenerated to correct a null literal in the protocol definitions.
In BiDi, skips the isConnected check for non-shadow element scopes.
wdio-utils now uses a supported EdgeDriver CDN.
Fixes finished metadata for reloadSession in the BrowserStack service.
waitForResponse now waits for the networkCollector's response.
The BrowserStack config.accessibility issue was addressed.
The logger is now CJS compliant, fixing compatibility for CommonJS consumers.
The BrowserStack service omits unset accessibility configuration.
The BrowserStack service and wdio-types now honor the skipped status.
Fixes an EBUSY file-busy error during spawn.
Calls the afterSession hook when session initialization fails.
Skips desktop browser download when androidPackage is set.
Fixes disableElementImplicitWait when it is defined too early.
Allure reporter historyId now uses the capability key instead of cid.
Fixes stale shadow element behavior.
Prevents a shadow root memory leak during SPA navigation.
Reverts the protocol rename of queryAppState.
Fixes service startup failures caused by Appium stderr log output.
Fixes TypeScript 7 compatibility.
Fixed mobile command argument mismatches for Appium 3 compatibility.
Updates the exit signal used for CLI process termination on Unix.
Ensures getValue returns a string.
Ignores the 'no such frame' error in handleUserPrompt.
Properly resolves pending steps and status …
Correctly detects the Cucumber framework in mult…
Improves robustness for BiDi cookies.
Fixes overlapping capabilities.
Restores the jiti fallback for CJS named imports in wdio-config.
Attaches Cucumber data tables to the step instead of the previously used location.
Fixes a Jasmine error in the Sauce service.
Passes through clean NODE_OPTIONS in the Appium service.
Allows parallel runs to download the CLI.
Allows waitForClickable in native context if the browser condition is met.
Corrects typings and inconsistencies in commands.
BiDi navigation now handles the 'no such frame' error.
Chaining element command overwrites no longer produces undefined binds.
The nested describe structure is preserved by the Jasmine and Allure integration.
Specs added dynamically in this hook are now handled correctly.
Relative XPath chaining works in BiDi mode.
Timeouts are propagated correctly during retries.
The shared-store service uses 127.0.0.1 instead of localhost.
The JUnit reporter no longer reports a skipped test when no tests are executed.
This setting can now be overridden in the beforeSession hook.
The command no longer uses double ports.
The browser runner now prioritizes this package for Tailwind CSS PostCSS handling.
Calling this.skip() in Mocha hooks is no longer reported as a failure.
Overlapping W3C capabilities are normalized.
Stuck workers are force-killed after the shutdown timeout.
Restores hook data for Jasmine 5.10 and later.
Rethrows pending and skip errors for Jasmine.
Handles a 'no such alert' error when a dialog closes.
The command no longer swaps a valid indexed element.
Action IDs are now type-specific to comply with the W3C WebDriver specification.
The BrowserStack service's BiDi syntax error is fixed.
Wildcard support in browser.mock is fixed.
File contention in the BrowserStack CLI is fixed.
Chrome workers on Windows now use a unique user-data directory.
The CLI no longer loads the config file twice and fixes tsx file timing load issues.
Framework timeouts are propagated to the shim to avoid premature behavior.
The implicit wait now handles stale elements correctly.
The Allure reporter now includes the capability ID in historyId for multi-capability runs.
isElementClickable is fixed for Perfecto mobile devices.
isElementDisplayed is fixed for Perfecto mobile devices.
The CLI check for parallel multiremote is corrected for empty capabilities.
The attach command now flattens options to the top level for waitFor commands.
Handling is fixed for multiple webviews with the same package when the first webview is empty.
Absolute paths are obtained using native path.resolve.
The launcher ignores warnings and debugger messages.
All options are passed to fetch.
Stale elements are detected in BiDi mode when using getCSSProperty.
The getHTML return type is corrected.
The withinViewport check logic is corrected.
The CLI respects maxInstancesPerCapability for dynamic capabilities.
Request mocking works when the mock is specified with a hostname only.
The JUnit reporter adds property support for Cucumber tests.
waitForExist maintains elementIds for shadow elements.
Adds a semicolon to fix browser.execute on Perfecto.
Prevents stale CSS property reads in WebDriver Bidi mode.
Reverts the tsConfigPath change in wdio.conf.
Fixes wdio repl when run with multiremote capabilities.
Invokes terminate on all unsuccessful websocket candidates.
webdriverio 815 changes
Breaking changes 6
browser.config was removed; use browser.options instead. Custom properties should be assigned through a custom capability or shared-store-service.
The code base transitioned from CommonJS to ESM; the notes warn that untested functionality may not behave the same.
Support for Node.js v12, v13 and v14 was dropped.
Support for tsconfig-paths was discontinued.
WebdriverIO types are now accessible through this path instead of
webdriverio/async.The previously deprecated @wdio/sync package was removed.
New APIs and options 5
Adds the centralHeader key for app accessibility authentication in the BrowserStack service.
A new Action API was added.
The wizard adds support for browser runner selection.
A new runner plugin allows you to run unit and component tests in the browser.
A new package provides access to WebdriverIO primitives.
Behavior and default changes 3
Enhances the gRPC client with message size limits.
The configuration wizard detects whether a project uses ESM or CJS and creates example files accordingly.
The wizard finds the project root and sets up the project relative to it.
Tooling 1
Adds targeted scans to the WDIO CLI V8 BrowserStack service.
webdriverio 716 changes
Breaking changes 6
The Cucumber integration now uses Cucumber v7.
Node.js v10 support is dropped; Node.js v12 and higher are recommended.
Performance tests no longer apply default environment changes; pass the desired emulation information when running enablePerformanceAudits.
TypeScript v4 or higher is required.
Invalid capabilities combining W3C and outdated JSONWireProtocol capability sets now cause an error.
TypeScript users with custom commands must add webdriverio/sync to their types list for proper type support.
New APIs and options 6
Adds a command that tests PWA apps using Lighthouse audits for installability and PWA optimization, without checking for HTTPS redirect.
The new formFactor option adjusts performance results based on the test environment and weights performance factors accordingly.
Adds a command for asserting application code coverage in tests.
Configure coverage capture for JavaScript application files with coverageReporter, including whether it is enabled, its type, and its log directory.
Adds sharable Sauce Labs report links to the spec reporter.
Custom command types can be declared by extending the global WebdriverIO.Browser interface.
Behavior and default changes 1
Google Lighthouse support now includes the latest performance metrics introduced in Lighthouse v7.
Tooling 2
The worker automatically compiles configuration and test files using Babel or TypeScript, allowing import statements in configuration without additional setup.
The testrunner automatically compiles TypeScript configuration files when TypeScript is detected, enabling type safety without additional setup.
Fixes and other changes 1
Cucumber hook types now match the original Cucumber types for type safety.