/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react' import useDocusaurusContext from '@docusaurus/useDocusaurusContext' import Link from '@docusaurus/Link' import Translate, { translate } from '@docusaurus/Translate' import Layout from '@theme/Layout' function Version() { const { siteConfig } = useDocusaurusContext() const repoUrl = `https://github.com/${siteConfig.organizationName}/${siteConfig.projectName}` const pastVersions = [{ name: 'v9', path: 'https://webdriver.io', comment: 'Stable', repoUrl }, { name: 'v8', label: 'v8', path: 'https://v8.webdriver.io', comment: (
LTS (until August 2025)
), repoUrl }, { name: 'v7', label: 'v7', path: 'https://v7.webdriver.io', comment: (
Deprecated (since July 2024)
), repoUrl }, { name: 'v6', label: 'v6', path: 'https://v6.webdriver.io', comment: (
Deprecated (since February 2022)
), repoUrl }, { name: 'v5', label: 'v5', path: 'https://v5.webdriver.io', comment: (
Deprecated (since January 2021)
), repoUrl }, { name: 'v4', label: 'v4', path: 'http://v4.webdriver.io', comment: (
Deprecated (since December 2019)
), branch: 'master', repoUrl: 'https://github.com/webdriverio-boneyard/v4' }] const stableVersion = pastVersions.shift() return (

WebdriverIO documentation versions

The project team releases new major versions roughly on a yearly cadence. LTS release status is "long-term support", which typically guarantees that critical bugs will be fixed for a total of 12 months until a new major release is made.

{stableVersion && (

Current version (Stable)

Here you can find the documentation for current released version.

{stableVersion.name} Documentation Release Notes {stableVersion.comment}
)} {pastVersions.length > 0 && (

Past versions

Here you can find documentation for previous versions of Docusaurus.

{pastVersions.map((version) => ( ))}
{version.label} Documentation Release Notes {version.comment}
)}
) } export default Version