Skip to content

fix(protocols): update WebDriver & Appium protocols#14914

Merged
christian-bromann merged 13 commits intowebdriverio:mainfrom
eglitise:w3c-protocol
Jan 8, 2026
Merged

fix(protocols): update WebDriver & Appium protocols#14914
christian-bromann merged 13 commits intowebdriverio:mainfrom
eglitise:w3c-protocol

Conversation

@eglitise
Copy link
Contributor

@eglitise eglitise commented Dec 4, 2025

Proposed changes

Recently I noticed a few minor inconsistencies between some WebDriver & Appium protocol endpoints and their WDIO implementations. This PR aims to fix most of them, while also updating relevant documentation:

  • setTimeouts: null values should be allowed (ref)

  • addVirtualAuthenticator: protocol and transport should be required since they do not have a default value (ref)

    • This could be argued as a breaking change, but I am not sure this endpoint would have worked without providing these properties anyway.
  • addCredential: userHandle should be optional and signCount should allow null values (ref)

    • signCount has also been changed to optional to fix TS issues, though it is required according to protocol. I believe this is still better than the other option of incorrectly keeping userHandle as required.
  • setUserVerified: missing isUserVerified property (ref)

    • Similarly to addVirtualAuthenticator, might seem like a breaking change, but in practice it is unlikely to have worked without this property.
  • installApp/activateApp/removeApp/terminateApp/isAppInstalled/queryAppState: should support bundleId and/or options parameters

  • backgroundApp: restoration can be prevented with a -1 value, not null (docs issue)

  • getEvents: type can also be string and should be optional

I've also added deprecation marks for all Appium/MJSONWP commands removed in Appium 3, and updated the documentation links for all remaining Appium commands.

There are 2 other Appium endpoints that I have not changed here, as they could be considered breaking:

  • getDeviceTime uses the GET endpoint, but Appium also supports the POST endpoint with an optional format property
  • stopRecordingScreen should be aligned with startRecordingScreen and only accept a single optional options property

Types of changes

  • Polish (an improvement for an existing feature)
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (improvements to the project's docs)
  • Specification changes (updates to WebDriver command specifications)
  • Internal updates (everything related to internal scripts, governance documentation and CI files)

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Backport Request

//: # (The current main branch is the development branch for WebdriverIO v9. If your change should be released to the current major version of WebdriverIO (v8), please raise another PR with the same changes against the v8 branch.)

  • This change is solely for v9 and doesn't need to be back-ported
  • Back-ported PR at #XXXXX

Further comments

Reviewers: @webdriverio/project-committers

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 4, 2025

Open in StackBlitz

create-wdio

npm i https://pkg.pr.new/webdriverio/webdriverio/create-wdio@14914

eslint-plugin-wdio

npm i https://pkg.pr.new/webdriverio/webdriverio/eslint-plugin-wdio@14914

@wdio/allure-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/allure-reporter@14914

@wdio/appium-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/appium-service@14914

@wdio/browser-runner

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/browser-runner@14914

@wdio/browserstack-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/browserstack-service@14914

@wdio/cli

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/cli@14914

@wdio/concise-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/concise-reporter@14914

@wdio/config

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/config@14914

@wdio/cucumber-framework

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/cucumber-framework@14914

@wdio/dot-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/dot-reporter@14914

@wdio/firefox-profile-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/firefox-profile-service@14914

@wdio/globals

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/globals@14914

@wdio/jasmine-framework

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/jasmine-framework@14914

@wdio/json-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/json-reporter@14914

@wdio/junit-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/junit-reporter@14914

@wdio/lighthouse-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/lighthouse-service@14914

@wdio/local-runner

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/local-runner@14914

@wdio/logger

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/logger@14914

@wdio/mocha-framework

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/mocha-framework@14914

@wdio/protocols

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/protocols@14914

@wdio/repl

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/repl@14914

@wdio/reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/reporter@14914

@wdio/runner

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/runner@14914

@wdio/sauce-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/sauce-service@14914

@wdio/shared-store-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/shared-store-service@14914

@wdio/smoke-test-cjs-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/smoke-test-cjs-service@14914

@wdio/smoke-test-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/smoke-test-reporter@14914

@wdio/smoke-test-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/smoke-test-service@14914

@wdio/spec-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/spec-reporter@14914

@wdio/static-server-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/static-server-service@14914

@wdio/sumologic-reporter

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/sumologic-reporter@14914

@wdio/testingbot-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/testingbot-service@14914

@wdio/types

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/types@14914

@wdio/utils

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/utils@14914

@wdio/webdriver-mock-service

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/webdriver-mock-service@14914

@wdio/xvfb

npm i https://pkg.pr.new/webdriverio/webdriverio/@wdio/xvfb@14914

webdriver

npm i https://pkg.pr.new/webdriverio/webdriverio/webdriver@14914

webdriverio

npm i https://pkg.pr.new/webdriverio/webdriverio@14914

commit: eeacd09

Copy link
Member

@wswebcreation wswebcreation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@christian-bromann , WDYT?

@wswebcreation wswebcreation added the PR: Spec Compliancy 👓 PRs that contain changes to the protocol specs label Dec 26, 2025
@christian-bromann christian-bromann merged commit 205058c into webdriverio:main Jan 8, 2026
59 checks passed
@eglitise eglitise deleted the w3c-protocol branch January 8, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Spec Compliancy 👓 PRs that contain changes to the protocol specs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants