Skip to content

[🐛 Bug]: Stuck in version 9.4.0 #13943

@P-Courteille

Description

@P-Courteille

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

9.4.0

Node.js Version

22.11.0

Mode

Standalone Mode

Which capabilities are you using?

My context:
- Windows
- Node v22.11.0
- Npm v10.9.1

What happened?

I tried to install the version 9.4.1 of webdriver.io but it stay in 9.4.0 and is consider to be up-to-date.

I tried:

  • npm i --save-dev @wdio/cli@9.4.1
  • npm i --save-dev @wdio/cli@latest
  • npm update
  • npm update --save-dev
  • delete my node_modules folder
  • create a new project from scratch (log available)

What is your expected behavior?

WDIO is update corretly to 9.4.0 ans the following code is no longer in issue (because of this fix 13923):
for await (let [index, row] of MobileA.$$('//myxpath')) {

How to reproduce the bug.

Create a new project (or update an existing one) and run npx wdio --version

Relevant log output

Microsoft Windows [version 10.0.22631.3880]
(c) Microsoft Corporation. Tous droits réservés.

C:\Users\My NAME\automatisation\Test_problem_version>npm init wdio@latest .
Need to install the following packages:
create-wdio@8.4.10
Ok to proceed? (y) y


> test@1.0.0 npx
> create-wdio .


                 -:...........................-:.
                 +                              +
              `` +      `...`        `...`      + `
            ./+/ +    .:://:::`    `::///::`  ` + ++/.
           .+oo+ +    /:+ooo+-/    /-+ooo+-/ ./ + +oo+.
           -ooo+ +    /-+ooo+-/    /-+ooo+-/ .: + +ooo.
            -+o+ +    `::///:-`    `::///::`    + +o+-
             ``. /.     ``        `````     .: .``
                  .----------------------------.
           `-::::::::::::::::::::::::::::::::::::::::-`
          .+oooo/:------------------------------:/oooo+.
      `.--/oooo-                                  :oooo/--.`
    .::-``:oooo`                                  .oooo-``-::.
  ./-`    -oooo`--.: :.--                         .oooo-    `-/.
 -/`    `-/oooo////////////////////////////////////oooo/.`    `/-
`+`   `/+oooooooooooooooooooooooooooooooooooooooooooooooo+:`   .+`
-/    +o/.:oooooooooooooooooooooooooooooooooooooooooooo:-/o/    +.
-/   .o+  -oooosoooososssssooooo------------------:oooo- `oo`   +.
-/   .o+  -oooodooohyyssosshoooo`                 .oooo-  oo.   +.
-/   .o+  -oooodooysdooooooyyooo` `.--.``     .:::-oooo-  oo.   +.
-/   .o+  -oooodoyyodsoooooyyooo.//-..-:/:.`.//.`./oooo-  oo.   +.
-/   .o+  -oooohsyoooyysssysoooo+-`     `-:::.    .oooo-  oo.   +.
-/   .o+  -ooooosooooooosooooooo+//////////////////oooo-  oo.   +.
-/   .o+  -oooooooooooooooooooooooooooooooooooooooooooo-  oo.   +.
-/   .o+  -oooooooooooooooooooooooooooooooooooooooooooo-  oo.   +.
-+////o+` -oooo---:///:----://::------------------:oooo- `oo////+-
+ooooooo/`-oooo``:-```.:`.:.`.+/-    .::::::::::` .oooo-`+ooooooo+
oooooooo+`-oooo`-- `/` .:+  -/-`/`   .::::::::::  .oooo-.+oooooooo
+-/+://-/ -oooo-`:`.o-`:.:-````.:    .///:``````  -oooo-`/-//:+:-+
: :..--:-:.+ooo+/://o+/-.-:////:-....-::::-....--/+ooo+.:.:--.-- /
- /./`-:-` .:///+/ooooo/+///////////////+++ooooo/+///:. .-:.`+./ :
:-:/.           :`ooooo`/`              .:.ooooo :           ./---
                :`ooooo`/`              .:.ooooo :
                :`ooooo./`              .:-ooooo :
                :`ooooo./`              .:-ooooo :
            `...:-+++++:/.              ./:+++++-:...`
           :-.````````/../              /.-:````````.:-
          -/::::::::://:/+             `+/:+::::::::::+.
          :oooooooooooo++/              +++oooooooooooo-

                           Webdriver.IO
              Next-gen browser and mobile automation
                    test framework for Node.js


Installing @wdio/cli to initialize project...
✔ Success!

===============================
🤖 WDIO Configuration Wizard 🧙
===============================

√ A project named "Test_problem_version" was detected at "C:\Users\My NAME\automatisation\Test_problem_version",
 correct? yes
√ What type of testing would you like to do? E2E Testing - of Web or Mobile Applications
√ Where is your automation backend located? On my local machine
√ Which environment you would like to automate? Mobile - native, hybrid and mobile web apps, on Android or iOS
√ Which mobile environment you'd like to automate? Android - native, hybrid and mobile web apps, tested on emulators and
 real devices
    > using UiAutomator2 (https://www.npmjs.com/package/appium-uiautomator2-driver)
√ Which framework do you want to use? Mocha (https://mochajs.org/)
√ Do you want to use Typescript to write tests? yes
√ Do you want WebdriverIO to autogenerate some test files? yes
√ What should be the location of your spec files? C:\Users\Paul
COURTEILLE\automatisation\Test_problem_version\test\specs\**\*.ts
√ Do you want to use page objects (https://martinfowler.com/bliki/PageObject.html)? yes
√ Where are your page objects located? C:\Users\Paul
COURTEILLE\automatisation\Test_problem_version\test\pageobjects\**\*.ts
√ Which reporter do you want to use?
√ Do you want to add a plugin to your test setup?
√ Would you like to include Visual Testing to your setup? For more information see
https://webdriver.io/docs/visual-testing! no
√ Do you want to add a service to your test setup?
√ Do you want me to run `npm install` yes


Setting up TypeScript...
✔ Success!

Installing packages using npm:
- @wdio/local-runner@latest
- @wdio/mocha-framework@latest
- appium-uiautomator2-driver


npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm warn deprecated rimraf@2.4.5: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@6.0.4: Glob versions prior to v9 are no longer supported
npm warn deprecated rimraf@2.4.5: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@6.0.4: Glob versions prior to v9 are no longer supported

added 805 packages, and audited 1212 packages in 34s

137 packages are looking for funding
  run `npm fund` for details

7 moderate severity vulnerabilities

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
✔ Success!

Creating a WebdriverIO config file...
✔ Success!

Autogenerating test files...
✔ Success!

Adding "wdio" script to package.json
⚠️  Couldn't add script to package.json: "spawn EINVAL", you can add it manually by running:

        npm.cmd pkg set scripts.wdio="wdio run ./wdio.conf.ts"

🤖 Successfully setup project at C:\Users\My NAME\automatisation\Test_problem_version 🎉

Join our Discord Community Server and instantly find answers to your issues or queries. Or just join and say hi 👋!
  🔗 https://discord.webdriver.io

Visit the project on GitHub to report bugs 🐛 or raise feature requests 💡:
  🔗 https://github.com/webdriverio/webdriverio

To run your tests, execute:
$ cd C:\Users\My NAME\automatisation\Test_problem_version
$ npm run wdio

√ Continue with Appium setup using appium-installer (https://github.com/AppiumTestDistribution/appium-installer)? no
Ok! You can learn more about setting up mobile environments in the Appium docs at https://appium.io/docs/en/2.0/quickstart/

C:\Users\My NAME\automatisation\Test_problem_version>npx wdio --version
9.4.0

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions